mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-31 14:55:41 +00:00
fix(password): Correctly check the secret question answer when hitting enter instead of the button next
This commit is contained in:
1 parent
d99f020f82
commit
ed7a136e0f
1 file changed
+12
@@ -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