diff options
| author | Rob <tienrobertnguyenn@gmail.com> | 2019-05-23 22:18:49 +1000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-05-24 08:40:25 +0200 |
| commit | 58df8aa40fe88f753ba79e091a52f236246260b3 (patch) | |
| tree | df59e1974eb9149b98ebe8aacefb403e31f32eb3 /docs | |
| parent | 8000767769ac37ec7f73eb9fcc4b3fc7399a5808 (diff) | |
Fixed #28780 -- Allowed specyfing a token parameter displayed in password reset URLs.
Co-authored-by: Tim Givois <tim.givois.mendez@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.0.txt | 4 | ||||
| -rw-r--r-- | docs/topics/auth/default.txt | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index ac275b31b9..5e661d8943 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index d7c0732794..691a7cbd24 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -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 |
