Macro google_authenticator::get_code[][src]

macro_rules! get_code {
    ($secret : expr, $time_slice : expr) => { ... };
    ($secret : expr) => { ... };
}
Expand description

A macro that can be used for convenient access to the function GoogleAuthenticator::get_code, by providing a default of the current time to the times_slice parameter.