mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-06-20 08:35:18 +00:00
Can generate a password reset token
This commit is contained in:
@ -71,4 +71,15 @@ export class ComunicUsersHelper {
|
||||
new_mail: newEmail,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a password reset link for a user
|
||||
*/
|
||||
static async CreatePasswordRecoveryLink(id: number): Promise<string> {
|
||||
return (
|
||||
await serverRequest("users/create_password_reset_link", {
|
||||
user_id: id,
|
||||
})
|
||||
).url;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user