Can create admin accounts

This commit is contained in:
2021-05-15 10:05:56 +02:00
parent c5b78f518b
commit 54c9b84945
2 changed files with 37 additions and 1 deletions

View File

@ -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
*/