Fixed #23155 -- Added request argument to user_login_failed signal.

This commit is contained in:
Gavin Wahl 2016-02-18 17:58:30 -07:00 committed by Tim Graham
parent 4b9330ccc0
commit f0f3de3c96
6 changed files with 42 additions and 7 deletions

View file

@ -479,6 +479,14 @@ can be used for notification when a user logs in or out.
authentication backend. Credentials matching a set of 'sensitive' patterns,
(including password) will not be sent in the clear as part of the signal.
``request``
The :class:`~django.http.HttpRequest` object, if one was provided to
:func:`~django.contrib.auth.authenticate`.
.. versionchanged:: 1.11
The ``request`` argument was added.
.. _authentication-backends-reference:
Authentication backends

View file

@ -117,6 +117,9 @@ Minor features
which in turn passes it to the authentication backend if it accepts a
``request`` argument.
* The :func:`~django.contrib.auth.signals.user_login_failed` signal now
receives a ``request`` argument.
:mod:`django.contrib.contenttypes`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~