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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user