diff options
| author | Marten Kenbeek <marten.knbk@gmail.com> | 2015-03-05 13:09:08 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-05 12:17:56 -0500 |
| commit | 8e744fa1507b6d425860c54e7673e603279367eb (patch) | |
| tree | 44f3befdcbc9ea30aa3afbfa0be84490aa2d0588 /docs | |
| parent | fb7d681705a92c6d510b06822450d6a94ed1623f (diff) | |
Stressed authentication should be successful before logging in a user.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth/default.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index f7bc764d47..4046b52f07 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -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 |
