Update src/main.rs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Pierre HUBERT 2024-05-23 09:27:58 +00:00
parent 11780c3dd1
commit bcfd55eb5c

View File

@ -77,7 +77,7 @@ fn main() {
.set_hash_algorithm(HashAlgorithm::SHA1)
.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 next_update = totp_generator.get_next_update_time().unwrap();