summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCamilo Nova <camilo.nova@gmail.com>2017-03-07 19:52:26 -0500
committerTim Graham <timograham@gmail.com>2017-03-07 19:54:23 -0500
commit33d2c53fb150d58fe4b212438050eea28bf4bf6f (patch)
tree5e0d6e70e94a606248664d46401668b40f79a4b1 /docs
parent36d640cd1f00493688145dff2ae1c3f19efdb8e7 (diff)
[1.11.x] Fixed #27891 -- Added PasswordResetConfirmView.post_reset_login_backend.
Backport of 5db465d5a6c389b8f9c6e21f7233be9387dc069d from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.11.txt2
-rw-r--r--docs/topics/auth/default.txt5
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index eb983de0dc..3ba4eb2e35 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -118,6 +118,8 @@ Minor features
* The new ``post_reset_login`` attribute for
:class:`~django.contrib.auth.views.PasswordResetConfirmView` allows
automatically logging in a user after a successful password reset.
+ If you have multiple ``AUTHENTICATION_BACKENDS`` configured, use the
+ ``post_reset_login_backend`` attribute to choose which one to use.
* To avoid the possibility of leaking a password reset token via the HTTP
Referer header (for example, if the reset page includes a reference to CSS or
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index f4090f77cb..1d91bdcf42 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -1506,6 +1506,11 @@ implementation details see :ref:`using-the-views`.
automatically authenticated after a successful password reset. Defaults
to ``False``.
+ * ``post_reset_login_backend``: A dotted path to the authentication
+ backend to use when authenticating a user if ``post_reset_login`` is
+ ``True``. Required only if you have multiple
+ :setting:`AUTHENTICATION_BACKENDS` configured. Defaults to ``None``.
+
* ``form_class``: Form that will be used to set the password. Defaults to
:class:`~django.contrib.auth.forms.SetPasswordForm`.