fix: mfa translations (#2527)

This commit is contained in:
Fabi
2021-10-19 09:38:35 +02:00
committed by GitHub
parent 13d0a9754c
commit 4c50b6dfa2
3 changed files with 9 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ func VerifyMFAOTP(code string, secret *crypto.CryptoValue, cryptoAlg crypto.Encr
valid := totp.Validate(code, decrypt)
if !valid {
return caos_errs.ThrowInvalidArgument(nil, "EVENT-8isk2", "Errors.User.MFA.Provider0.InvalidCode")
return caos_errs.ThrowInvalidArgument(nil, "EVENT-8isk2", "Errors.User.MFA.OTP.InvalidCode")
}
return nil
}