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:
Aleksi Häkli 2018-04-21 17:28:43 +03:00
parent 2bf1c46c02
commit 1879762e04
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE

View file

@ -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)