Prompt user email on password reset

This commit is contained in:
Pierre
2018-05-21 10:40:44 +02:00
parent b0c4971838
commit 683a8eb0e6
5 changed files with 122 additions and 0 deletions

View File

@ -31,6 +31,20 @@ ComunicWeb.components.account.interface = {
},
/**
* Check whether an email address is linked to an account or not
*
* @param {String} email The email address to check
* @param {function} callback
*/
existsMail: function(email, callback){
var apiURI = "account/exists_email";
var params = {
email: email
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Request the export of all the data of the user
*