Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accounts-password: 'user' object update before passing to email template functions #2210


Copy link

@FredericoC FredericoC commented Jun 4, 2014

I wanted to customise my password reset email, but the 'user' object passed through to 'Accounts.emailTemplates.resetPassword.text' didn't have the latest token data. This fix updates the user object with the new token data before calling the email template functions.

Copy link

@apollo-cla apollo-cla commented Jun 4, 2014

@FredericoC: Before we can merge your pull request, you'll need to sign the Meteor Contributor Agreement:

Copy link

@glasser glasser commented Jun 10, 2014

Sure. Probably a better answer would be to have made the email template callbacks more extensible so it was more natural to add the token as an argument, but this seems like a fine start. Merged.

@glasser glasser closed this Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants