Perform a request over the API to fetch security information

This commit is contained in:
Pierre
2018-04-18 18:33:18 +02:00
parent 7726145a63
commit 9b32ee19e8
3 changed files with 118 additions and 2 deletions

View File

@ -43,6 +43,20 @@ ComunicWeb.components.settings.interface = {
directory: directory
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
}
},
/**
* Get security account settings
*
* @param {string} password The password of the user
* @param {function} callback Callback function
*/
getSecurity: function(password, callback){
var apiURI = "settings/get_security";
var params = {
password: password
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
}