Update src/main.rs
This commit is contained in:
parent
11780c3dd1
commit
bcfd55eb5c
@ -77,7 +77,7 @@ fn main() {
|
|||||||
.set_hash_algorithm(HashAlgorithm::SHA1)
|
.set_hash_algorithm(HashAlgorithm::SHA1)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let key = base32::decode(Alphabet::RFC4648 { padding: true }, &secret).unwrap();
|
let key = base32::decode(Alphabet::Rfc4648 { padding: true }, &secret).unwrap();
|
||||||
|
|
||||||
let code = totp_generator.get_code(&key);
|
let code = totp_generator.get_code(&key);
|
||||||
let next_update = totp_generator.get_next_update_time().unwrap();
|
let next_update = totp_generator.get_next_update_time().unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user