mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 04:48:52 +00:00
fix(password): Correctly check the secret question answer when hitting enter instead of the button next
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user