简体   繁体   中英

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.

在此处输入图片说明

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!

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM