Get the list of security questions of the user

This commit is contained in:
Pierre
2018-05-23 21:41:02 +02:00
parent bde2b5dde6
commit fa1c1596d5
6 changed files with 85 additions and 0 deletions

View File

@ -60,6 +60,20 @@ ComunicWeb.components.account.interface = {
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Given an email address, returns the security questions of a user
*
* @param {String} email The email address of the account
* @param {function} callback
*/
getSecurityQuestions: function(email, callback){
var apiURI = "account/get_security_questions";
var params = {
email: email
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Request the export of all the data of the user
*