fix(password): Correctly check the secret question answer when hitting enter instead of the button next

This commit is contained in:
Hivert Quentin
2025-08-20 14:04:31 +02:00
parent d99f020f82
commit ed7a136e0f

View File

@@ -89,6 +89,12 @@
};
this.login = function () {
if(vm.loginState == 'passwordrecovery') {
if(vm.passwordRecovery.passwordRecoveryMode == 'SecretQuestion')
return this.passwordRecoveryCheck();
if(vm.passwordRecovery.passwordRecoveryMode == 'SecondaryEmail')
return this.passwordRecoveryEmail();
}
vm.loginState = 'authenticating';
Authentication.login(vm.creds)
.then(function (data) {
@@ -167,6 +173,12 @@
};
this.loginName = function() {
if(vm.loginState == 'passwordrecovery') {
if(vm.passwordRecovery.passwordRecoveryMode == 'SecretQuestion')
return this.passwordRecoveryCheck();
if(vm.passwordRecovery.passwordRecoveryMode == 'SecondaryEmail')
return this.passwordRecoveryEmail();
}
vm.loginState = 'authenticating';
Authentication.loginName(vm.creds)
.then(function(data) {