mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
algorithm: drop unwanted string match
This commit is contained in:
parent
93387ca2ac
commit
18bb2e888d
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ impl FromStr for Algorithm {
|
|||
type Err = anyhow::Error;
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
match s.to_lowercase().as_ref() {
|
||||
"sha1" | "otp" => Ok(Self::SHA1),
|
||||
"sha1" => Ok(Self::SHA1),
|
||||
"sha256" => Ok(Self::SHA256),
|
||||
"sha512" => Ok(Self::SHA512),
|
||||
_ => anyhow::bail!("Unsupported HMAC-algorithm"),
|
||||
|
|
Loading…
Add table
Reference in a new issue