mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-15 03:43:29 +00:00
feat(password-recovery): Add password recovery with secret question or secondary email
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user