Opened 7 hours ago
Last modified 7 hours ago
#36110 new New feature
Unable to customize kwargs passed to PasswordResetForm EmailMultiAlternatives
Reported by: | Claude Paroz | Owned by: | |
---|---|---|---|
Component: | contrib.auth | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Use case: you'd like to add a Reply-To header to the password reset message.
To do that currently, you have no other choice than to rewrite the whole PasswordResetForm.send_mail
method. I think a hook is needed to be able to define any other EmailMultiAlternatives init arguments.
Note:
See TracTickets
for help on using tickets.
Note I didn't pass through a forum post as I think the need is rather straightforward. You may disagree :-)
A possible implementation: