Skip to content

security.resetUserPassword ​

Emails a user a link to reset their password.

js
security.resetUserPassword(userId)

Parameters ​

ParameterTypeDescription
userIdnumberThe id of the user.

Returns ​

boolean

true if the email was sent, otherwise false.

Examples ​

js
const success = security.resetUserPassword(1234); // true if successful