1
0
mirror of https://gitlab.com/comunic/comunicconsole synced 2025-07-10 12:02:50 +00:00

Can change user email address

This commit is contained in:
2021-07-13 17:10:27 +02:00
parent 322969daa7
commit 378808528e
4 changed files with 81 additions and 1 deletions

@ -61,4 +61,14 @@ export class ComunicUsersHelper {
user_id: id,
});
}
/**
* Change the email address of a user
*/
static async ChangeEmail(id: number, newEmail: string): Promise<void> {
await serverRequest("users/change_email_address", {
user_id: id,
new_mail: newEmail,
});
}
}