security.resetUserPassword
Emails a user a link to reset their password.
js
security.resetUserPassword(userId)Parameters
| Parameter | Type | Description |
|---|---|---|
userId | number | The id of the user. |
Returns
booleantrue if the email was sent, otherwise false.
Examples
js
const success = security.resetUserPassword(1234); // true if successful