I have two methods.
“setPassword” works as expected,
“resetForgottenPassword” returns an error: “Exception while invoking method ‘resetForgottenPassword’ TypeError: Accounts.resetPassword is not a function.”
Meteor.methods({
'setPassword': function(newPassword) {
Accounts.setPassword(this.userId, newPassword, { logout: false });
},
'resetForgottenPassword': function(token, newPassword) {
Accounts.resetPassword(token, newPassword);
}
});
How can in be? Documentation says that “resetPassword” is a function https://docs.meteor.com/api/passwords.html#Accounts-resetPassword