feat(password-recovery): Add password recovery with secret question or secondary email

This commit is contained in:
smizrahi
2022-10-03 08:56:41 +02:00
parent 6931186bba
commit 656807b77d
47 changed files with 1729 additions and 159 deletions
@@ -393,6 +393,26 @@
return true;
};
/**
* @function isItemSecretQuestion
* @memberof Preferences.prototype
* @desc Check if the customer pick the secret question for e-mail recovery
* @returns true if secret question is selected
*/
Preferences.prototype.isItemSecretQuestion = function() {
return "SecretQuestion" == this.defaults.SOGoPasswordRecoveryMode;
};
/**
* @function isItemSecondaryEmail
* @memberof Preferences.prototype
* @desc Check if the customer pick the email for password recovery
* @returns true if email is selected
*/
Preferences.prototype.isItemSecondaryEmail = function () {
return "SecondaryEmail" == this.defaults.SOGoPasswordRecoveryMode;
};
/**
* @function authorizeNotifications
* @memberof Preferences.prototype
@@ -55,6 +55,7 @@
});
});
};
this.onDesktopNotificationsChange = function() {
if (this.preferences.defaults.SOGoDesktopNotifications)