Skip to content

Pass options through to the resetPasswordRequest event #2521

@justinwatkins

Description

@justinwatkins

user.js in User.resetPassword
UserModel.emit('resetPasswordRequest', { email: options.email, accessToken: accessToken, user: user });

The resetPassword method already accepts an options property bag and it seems trivial to pass this back through in the event object. It would be useful to be able to pass context data through to that email (like some site state, or my scenario the actual host name to embed in the email with a multi-host site).

You used to be able to shove the hostname in the current context and pull it out, but that is flakey at best in the current build. I can create a pull request.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions