mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-06-20 00:25:19 +00:00
Can create admin accounts
This commit is contained in:
@ -97,6 +97,16 @@ export class AccountHelper {
|
||||
return await serverRequest("accounts/list");
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new administrator
|
||||
*/
|
||||
static async CreateAdmin(name: string, email: string) {
|
||||
await serverRequest("accounts/create", {
|
||||
name: name,
|
||||
mail: email,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to refresh current account information
|
||||
*/
|
||||
|
Reference in New Issue
Block a user