Accounts.resetPassword

Client

Accounts.resetPassword(token, newPassword, [callback])

import { Accounts } from 'meteor/accounts-base' Source

Reset the password for a user using a token received in email. Logs the user in afterwards.

Arguments

token String

The token retrieved from the reset password URL.

newPassword String

A new password for the user. This is not sent in plain text over the wire.

callback Function

Optional callback. Called with no arguments on success, or with a single Error argument on failure.

doc_Meteor
2016-05-29 17:17:37
Comments
Leave a Comment

Please login to continue.