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:
src
helpers
ui
utils
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user