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

Closed
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
3 participants
@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.

@meteor-bot

This comment has been minimized.

meteor-bot commented Jun 4, 2014

@FredericoC: Before we can merge your pull request, you'll need to sign the Meteor Contributor Agreement: https://contribute.meteor.com/

@glasser

This comment has been minimized.

Member

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