mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Update netbox/users/signals.py
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
This commit is contained in:
parent
6f908f8cbf
commit
1135019d02
@ -6,5 +6,5 @@ from django.contrib.auth.signals import user_login_failed
|
||||
@receiver(user_login_failed)
|
||||
def log_user_login_failed(sender, credentials, request, **kwargs):
|
||||
logger = logging.getLogger('netbox.auth.login')
|
||||
username = credentials.get("username", None)
|
||||
username = credentials.get("username")
|
||||
logger.info(f"Failed login attempt for username: {username}")
|
||||
|
Loading…
Reference in New Issue
Block a user