Accounts.changePassword

Client

Accounts.changePassword(oldPassword, newPassword, [callback])

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

Change the current user's password. Must be logged in.

Arguments

oldPassword String

The user's current password. This is not sent in plain text over the wire.

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:25
Comments
Leave a Comment

Please login to continue.