From f252035254b7cf3e7a303d82791c31363cf3898a Mon Sep 17 00:00:00 2001 From: Daniil Egortsev <44134362+playhardgopro@users.noreply.github.com> Date: Thu, 11 Apr 2024 02:31:34 +0200 Subject: [PATCH] fix(TotpDigits): fix typo in TryFrom impl (#2702) --- server/lib/src/credential/totp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/src/credential/totp.rs b/server/lib/src/credential/totp.rs index f30491898..7f0cc90b7 100644 --- a/server/lib/src/credential/totp.rs +++ b/server/lib/src/credential/totp.rs @@ -34,7 +34,7 @@ impl TryFrom for TotpDigits { fn try_from(value: u8) -> Result { match value { 6 => Ok(TotpDigits::Six), - 8 => Ok(TotpDigits::Six), + 8 => Ok(TotpDigits::Eight), _ => Err(()), } }