Skip to content

Commit

Permalink
Documented auth's login/logout function parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Sep 28, 2015
1 parent 17e2edf commit c14b6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/auth/default.txt
Expand Up @@ -322,7 +322,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
Expand Down Expand Up @@ -370,7 +370,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
Expand Down

0 comments on commit c14b6b5

Please sign in to comment.