#24944: Have password_reset pass extra_context to the email template rendering
as
well
-------------------------------+--------------------
Reporter: twelveeighty | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
The password_reset function in auth.views currently allows for extra
context parameters to be passed to the rendered reset password form, but
it does not pass through those extra context parameters to the 'opt'
dictionary used for the email template. This should be an easy feature to
add: just before the form.save(), add the extra_context to the opts
dictionary:
{{{
# inside the request.method == 'POST' and form.isValid() block:
opts = { ... }
if extra_context is not None:
opts.update(extra_context)
form.save(**opts)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24944>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.f61b6ede8ef3f1ddb8b4f99fc84e729f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.