mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Can send request to delete user accounts
This commit is contained in:
		@@ -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);
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user