mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
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:
parent
8000767769
commit
58df8aa40f
7 changed files with 42 additions and 6 deletions
|
@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue