mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-06-20 08:35:18 +00:00
Can delete auth keys
This commit is contained in:
@ -265,4 +265,17 @@ export class AccountHelper {
|
||||
id: adminID,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete an admin auth key
|
||||
*
|
||||
* @param adminID The id of the target admin
|
||||
* @param keyID The id of the key to delete
|
||||
*/
|
||||
static async DeleteAuthKey(adminID: number, keyID: number) {
|
||||
return await serverRequest("accounts/delete_auth_key", {
|
||||
adminID: adminID,
|
||||
keyID: keyID,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user