mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
2fa: log error on totp mismatch (#10734)
Addresses #9515 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
f99942cf9a
commit
6868f052de
@ -54,7 +54,9 @@ public class TotpUserTwoFactorAuthenticator extends AdapterBase implements UserT
|
||||
logger.info("2FA matches user's input");
|
||||
return;
|
||||
}
|
||||
throw new CloudTwoFactorAuthenticationException("two-factor authentication code provided is invalid");
|
||||
String msg = "two-factor authentication code provided is invalid";
|
||||
logger.error(msg);
|
||||
throw new CloudTwoFactorAuthenticationException(msg);
|
||||
}
|
||||
|
||||
private String get2FAKey(UserAccount userAccount) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user