1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Fixed #26343 -- Sent user_login_failed signal if an auth backend raises PermissionDenied.

This commit is contained in:
ieatkittens
2016-03-11 17:22:51 -05:00
committed by Tim Graham
parent b3610f38fa
commit ab8af342b1
2 changed files with 12 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ def authenticate(**credentials):
user = backend.authenticate(**credentials)
except PermissionDenied:
# This backend says to stop in our tracks - this user should not be allowed in at all.
return None
break
if user is None:
continue
# Annotate the user object with the path of the backend.