Prompt user preferred option to reset its password

This commit is contained in:
Pierre
2018-05-22 22:48:48 +02:00
parent 79da14e0bc
commit 9a7c3245c4
6 changed files with 139 additions and 3 deletions

View File

@ -45,6 +45,21 @@ ComunicWeb.components.account.interface = {
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Check whether the security questions have been set for an account
* with an email address or not
*
* @param {String} email The email address of the account
* @param {function} callback
*/
checkSecurityQuestionsExistence: function(email, callback){
var apiURI = "account/has_security_questions";
var params = {
email: email
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Request the export of all the data of the user
*