chore: Use the new name of Alphabet::RFC4648 varint
Some checks failed
Write changelog / write-changelog (push) Successful in 3s
Rust CI / Rust CI (push) Successful in 3m4s
CD / build-assets (x86_64-pc-windows-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-gnu) (push) Has been cancelled
CD / build-assets (x86_64-unknown-linux-musl) (push) Has been cancelled
CD / release (push) Has been cancelled
CD / build-assets (aarch64-unknown-linux-musl) (push) Has been cancelled

Based-on: dffd619b5e
This commit is contained in:
Awiteb 2024-05-19 06:03:58 +03:00
parent dffd619b5e
commit 5cf401996b
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -78,7 +78,7 @@ pub fn totp_now(secret_base32: &str, hash_function: &TotpHash) -> LprsResult<(St
/// ## Errors
/// - If the given string not valid base32 string
pub fn base32_decode(base32_string: &str) -> LprsResult<Vec<u8>> {
base32::decode(Base32Alphabet::RFC4648 { padding: true }, base32_string)
base32::decode(Base32Alphabet::Rfc4648 { padding: true }, base32_string)
.ok_or_else(|| LprsError::Base32("Invalid base32 string".to_owned()))
}