mirror of https://github.com/apache/cloudstack.git
Fix 2FA becoming enabled when the user inputs the wrong code during setup (#7972)
This commit is contained in:
parent
951ba04cf0
commit
ef742210b5
|
|
@ -3259,7 +3259,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
_userDetailsDao.update(userDetailVO.getId(), userDetailVO);
|
||||
}
|
||||
} catch (CloudTwoFactorAuthenticationException e) {
|
||||
UserDetailVO userDetailVO = _userDetailsDao.findDetail(userAccountId, "2FAsetupComplete");
|
||||
UserDetailVO userDetailVO = _userDetailsDao.findDetail(userAccountId, UserDetailVO.Setup2FADetail);
|
||||
if (userDetailVO != null && userDetailVO.getValue().equals(UserAccountVO.Setup2FAstatus.ENABLED.name())) {
|
||||
disableTwoFactorAuthentication(userAccountId, caller, owner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue