diff options
| author | Michael Farrell <micolous+git@gmail.com> | 2012-07-12 11:13:15 +0930 |
|---|---|---|
| committer | Preston Holmes <preston@ptone.com> | 2012-09-30 22:34:50 -0700 |
| commit | 7cc4068c4470876c526830778cbdac2fdfd6dc26 (patch) | |
| tree | ee837a8ccbbece0e83e2846f1ad5343f5e3d6b93 /docs/topics | |
| parent | 8bd7b598b6de1be1e3f72f3a1ee62803b1c02010 (diff) | |
Fixed #18616 -- added user_login_fail signal to contrib.auth
Thanks to Brad Pitcher for documentation
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/auth.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index 0a19f5ed5a..421c371cc9 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -876,13 +876,15 @@ The auth framework uses two :doc:`signals </topics/signals>` that can be used for notification when a user logs in or out. .. data:: django.contrib.auth.signals.user_logged_in + :module: +.. versionadded:: 1.3 Sent when a user logs in successfully. Arguments sent with this signal: ``sender`` - As above: the class of the user that just logged in. + The class of the user that just logged in. ``request`` The current :class:`~django.http.HttpRequest` instance. @@ -891,6 +893,8 @@ Arguments sent with this signal: The user instance that just logged in. .. data:: django.contrib.auth.signals.user_logged_out + :module: +.. versionadded:: 1.3 Sent when the logout method is called. @@ -905,6 +909,21 @@ Sent when the logout method is called. The user instance that just logged out or ``None`` if the user was not authenticated. +.. data:: django.contrib.auth.signals.user_login_failed + :module: +.. versionadded:: 1.5 + +Sent when the user failed to login successfully + +``sender`` + The name of the module used for authentication. + +``credentials`` + A dictonary of keyword arguments containing the user credentials that were + passed to :func:`~django.contrib.auth.authenticate()` or your own custom + authentication backend. Credentials matching a set of 'sensitive' patterns, + (including password) will not be sent in the clear as part of the signal. + Limiting access to logged-in users ---------------------------------- |
