[1.7.x] Stressed authentication should be successful before logging in a user.
Backport of 8e744fa1507b6d425860c54e7673e603279367eb from master
This commit is contained in:
parent
5de18e50dc
commit
7f2d60996c
@ -356,8 +356,8 @@ If you have an authenticated user you want to attach to the current session
|
|||||||
|
|
||||||
.. admonition:: Calling ``authenticate()`` first
|
.. admonition:: Calling ``authenticate()`` first
|
||||||
|
|
||||||
When you're manually logging a user in, you *must* call
|
When you're manually logging a user in, you *must* successfully authenticate
|
||||||
:func:`~django.contrib.auth.authenticate()` before you call
|
the user with :func:`~django.contrib.auth.authenticate()` before you call
|
||||||
:func:`~django.contrib.auth.login()`.
|
:func:`~django.contrib.auth.login()`.
|
||||||
:func:`~django.contrib.auth.authenticate()`
|
:func:`~django.contrib.auth.authenticate()`
|
||||||
sets an attribute on the :class:`~django.contrib.auth.models.User` noting
|
sets an attribute on the :class:`~django.contrib.auth.models.User` noting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user