mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Perform a request over the API to fetch security information
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
||||
}
|
Reference in New Issue
Block a user