security.resetUserPassword
Send a Reset Password link to a user so they can reset their password. The link is sent through email. Returns true if the reset link has been sent.
js
security.resetUserPassword(userId);
Parameters
userId
- The user's User ID.
Example
js
let success = security.resetUserPassword(1234); // Returns true if successful
TIP
Note that the email might reach the user within a few minutes.