Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker-app/qfieldcloud/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ def before_send(event, hint):
###########################
# The integer number of login attempts allowed before a record is created for the failed logins. Default: 3
AXES_FAILURE_LIMIT = 5
# If True, only lock based on username, and never lock based on IP if attempts exceed the limit. Otherwise utilize the existing IP and user locking logic. Default: False
AXES_ONLY_USER_FAILURES = True
# Configures the limiter to handle username only (see https://github.com/jazzband/django-axes/blob/4e89d72b92db044ff3f6b23ea2ab2e681211c98e/docs/2_installation.rst#version-6-breaking-changes-and-upgrading-from-django-axes-version-5)
AXES_LOCKOUT_PARAMETERS = ["username"]
# If set, defines a period of inactivity after which old failed login attempts will be cleared. If an integer, will be interpreted as a number of hours. Default: None
AXES_COOLOFF_TIME = timedelta(minutes=30)
AXES_COOLOFF_TIME = lambda request: timedelta(minutes=30) # noqa: E731
# If True, a successful login will reset the number of failed logins. Default: False
AXES_RESET_ON_SUCCESS = True

Expand Down
2 changes: 1 addition & 1 deletion docker-app/requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ boto3==1.35.90
deprecated==1.2.15
django-allauth==0.44.0
django-auditlog==3.0.0
django-axes==5.40.1
django-axes==7.0.1
django-bootstrap4==24.4
django-classy-tags==4.1.0
django-common-helpers==0.9.2
Expand Down
2 changes: 1 addition & 1 deletion docker-app/requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ django-appconf==1.0.6
# via django-cryptography
django-auditlog==3.0.0
# via -r /requirements/requirements.in
django-axes==5.40.1
django-axes==7.0.1
# via -r /requirements/requirements.in
django-bootstrap4==24.4
# via -r /requirements/requirements.in
Expand Down

0 comments on commit 87ba9c9

Please sign in to comment.