Stressed authentication should be successful before logging in a user.

This commit is contained in:
Marten Kenbeek 2015-03-05 13:09:08 +01:00 committed by Tim Graham
parent fb7d681705
commit 8e744fa150
1 changed files with 2 additions and 2 deletions

View File

@ -352,8 +352,8 @@ If you have an authenticated user you want to attach to the current session
.. admonition:: Calling ``authenticate()`` first
When you're manually logging a user in, you *must* call
:func:`~django.contrib.auth.authenticate()` before you call
When you're manually logging a user in, you *must* successfully authenticate
the user with :func:`~django.contrib.auth.authenticate()` before you call
:func:`~django.contrib.auth.login()`.
:func:`~django.contrib.auth.authenticate()`
sets an attribute on the :class:`~django.contrib.auth.models.User` noting