mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-24 07:03:44 +00:00
Use warning for custom authentication backend authentication failures
Fixes #311 Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
2bf1c46c02
commit
1879762e04
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def log_user_login_failed(sender, credentials, request, **kwargs): # pylint: di
|
|||
""" Create an AccessAttempt record if the login wasn't successful
|
||||
"""
|
||||
if request is None or settings.AXES_USERNAME_FORM_FIELD not in credentials:
|
||||
log.error('Attempt to authenticate with a custom backend failed.')
|
||||
log.warning('Attempt to authenticate with a custom backend failed.')
|
||||
return
|
||||
|
||||
ip_address = get_client_ip(request)
|
||||
|
|
|
|||
Loading…
Reference in a new issue