You could create a custom view function that wraps password_reset() and
adds a RequestContext.
On Wednesday, October 7, 2015 at 1:05:12 PM UTC-4, Mike Widman wrote:
>
> Thank you.
>
> I am not sure that solves the problem though (or I just don't understand
> how to do this): If I am calling pas
Thank you.
I am not sure that solves the problem though (or I just don't understand
how to do this): If I am calling password_reset directly from my urls, how
do I pass a requestContext into the "extra_email_context"? There is no
request sent to "render_to_string" so the RequestContext would
In Django 1.9, the "extra_email_context" parameter was added to achieve
this.
https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.views.password_reset
On Monday, October 5, 2015 at 5:48:57 PM UTC-4, mwidman wrote:
>
> Not sure if this intentional or not, but in Django
Not sure if this intentional or not, but in Django 1.8.4 the
PasswordResetForm's save function only passes a dictionary as the context
to "send_mail()".
Because of that, there is now way to add any extra information (i.e. from a
RequestContext).
Can anyone say if this is done for some securit
4 matches
Mail list logo