diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-28 14:08:17 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-28 14:12:32 -0400 |
| commit | 0094fb6be8e0f0831e2f3e3e1b36900cf60f6785 (patch) | |
| tree | 44129ba3286888d286dd7cca7e41039f37504ecc /docs | |
| parent | 76aa4cc8a265ec36c4ae344eab7985193dcde5ee (diff) | |
[1.9.x] Documented auth's login/logout function parameters.
Backport of c14b6b52ff131db263bf06a02f903a73390975da from master
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 8da0e78c47..d0e446faad 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -323,7 +323,7 @@ How to log a user in If you have an authenticated user you want to attach to the current session - this is done with a :func:`~django.contrib.auth.login` function. -.. function:: login() +.. function:: login(request, user) To log a user in, from a view, use :func:`~django.contrib.auth.login()`. It takes an :class:`~django.http.HttpRequest` object and a @@ -371,7 +371,7 @@ If you have an authenticated user you want to attach to the current session How to log a user out --------------------- -.. function:: logout() +.. function:: logout(request) To log out a user who has been logged in via :func:`django.contrib.auth.login()`, use |
