mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-20 13:36:45 +01:00
Log failed login attempts
This commit is contained in:
parent
9893ae9880
commit
668b068bb5
6 changed files with 72 additions and 1 deletions
15
src/paperless/apps.py
Normal file
15
src/paperless/apps.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from django.apps import AppConfig
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from paperless.signals import handle_failed_login
|
||||
|
||||
|
||||
class PaperlessConfig(AppConfig):
|
||||
name = "paperless"
|
||||
|
||||
verbose_name = _("Paperless")
|
||||
|
||||
def ready(self):
|
||||
from django.contrib.auth.signals import user_login_failed
|
||||
|
||||
user_login_failed.connect(handle_failed_login)
|
||||
AppConfig.ready(self)
|
||||
Loading…
Add table
Add a link
Reference in a new issue