Herbi Shtini
Herbi Shtini

Reputation: 2040

Meteor accounts set password throws server error

I use "sendResetPasswordEmail" to send reset password email to newly created user. Email goes well and the link work as expected bringing the user who got the email to reset password route. After setting passwords and submitting the form I get the following error in server(see below screenshot) and an "Internal error" message in client.

enter image description here

The user is actually created and has a token in password property but the password is not set. I am having really bad time debugging it because I can not find the source. What am I doing wrong here? Is "sendResetPasswordEmail" used only when reseting existing user?

Thank you guys!

Upvotes: 0

Views: 73

Answers (1)

tbking
tbking

Reputation: 9076

If you want a newly-created user to set password, use Accounts.sendEnrollmentEmail.

Read this docs for information about how to use Accounts.sendEnrollmentEmail.

Upvotes: 1

Related Questions