Fixed #28780 -- Allowed specyfing a token parameter displayed in password reset URLs.

Co-authored-by: Tim Givois <tim.givois.mendez@gmail.com>
This commit is contained in:
Rob 2019-05-23 22:18:49 +10:00 committed by Mariusz Felisiak
parent 8000767769
commit 58df8aa40f
7 changed files with 42 additions and 6 deletions

View file

@ -59,7 +59,9 @@ Minor features
:mod:`django.contrib.auth`
~~~~~~~~~~~~~~~~~~~~~~~~~~
* ...
* The new ``reset_url_token`` attribute in
:class:`~django.contrib.auth.views.PasswordResetConfirmView` allows specifying
a token parameter displayed as a component of password reset URLs.
:mod:`django.contrib.contenttypes`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -1395,6 +1395,13 @@ implementation details see :ref:`using-the-views`.
* ``extra_context``: A dictionary of context data that will be added to the
default context data passed to the template.
* ``reset_url_token``: Token parameter displayed as a component of password
reset URLs. Defaults to ``'set-password'``.
.. versionchanged:: 3.0
The ``reset_url_token`` class attribute was added.
**Template context:**
* ``form``: The form (see ``form_class`` above) for setting the new user's