Can send request to delete user accounts

This commit is contained in:
Pierre
2018-05-09 14:57:46 +02:00
parent e55614b4c8
commit d6413887c2
7 changed files with 183 additions and 6 deletions

View File

@@ -31,4 +31,18 @@ ComunicWeb.components.account.interface = {
},
/**
* Request the deletion of the account
*
* @param {string} password The password of the account
* @param {function} callback
*/
deleteAccount: function(password, callback){
var apiURI = "account/delete";
var params = {
password: password
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
}