Skip to content

Commit

Permalink
⬆️ Upgrade several dependencies
Browse files Browse the repository at this point in the history
* django-axes to 6.3.0
* django-redis to 5.4.0
  • Loading branch information
stevenbal committed Feb 2, 2024
1 parent 8d9fc93 commit e69dd12
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
6 changes: 2 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,14 @@ django==3.2.23
# zgw-consumers
django-admin-index==3.1.0
# via -r requirements/base.in
django-axes==5.41.1
django-axes==6.3.0
# via -r requirements/base.in
django-filter==2.4.0
# via
# -r requirements/base.in
# commonground-api-common
django-formtools==2.3
# via maykin-django-two-factor-auth
django-ipware==3.0.2
# via django-axes
django-jsonform==2.21.4
# via mozilla-django-oidc-db
django-markup==1.3
Expand All @@ -112,7 +110,7 @@ django-phonenumber-field==5.2.0
# via maykin-django-two-factor-auth
django-privates==2.0.0.post0
# via django-simple-certmanager
django-redis==5.2.0
django-redis==5.4.0
# via -r requirements/base.in
django-relativedelta==2.0.0
# via zgw-consumers
Expand Down
8 changes: 2 additions & 6 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ django==3.2.23
# zgw-consumers
django-admin-index==3.1.0
# via -r requirements/base.txt
django-axes==5.41.1
django-axes==6.3.0
# via -r requirements/base.txt
django-filter==2.4.0
# via
Expand All @@ -131,10 +131,6 @@ django-formtools==2.3
# via
# -r requirements/base.txt
# maykin-django-two-factor-auth
django-ipware==3.0.2
# via
# -r requirements/base.txt
# django-axes
django-jsonform==2.21.4
# via
# -r requirements/base.txt
Expand All @@ -157,7 +153,7 @@ django-privates==2.0.0.post0
# via
# -r requirements/base.txt
# django-simple-certmanager
django-redis==5.2.0
django-redis==5.4.0
# via -r requirements/base.txt
django-relativedelta==2.0.0
# via
Expand Down
8 changes: 2 additions & 6 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ django==3.2.23
# zgw-consumers
django-admin-index==3.1.0
# via -r requirements/ci.txt
django-axes==5.41.1
django-axes==6.3.0
# via -r requirements/ci.txt
django-debug-toolbar==4.2.0
# via -r requirements/dev.in
Expand All @@ -157,10 +157,6 @@ django-formtools==2.3
# via
# -r requirements/ci.txt
# maykin-django-two-factor-auth
django-ipware==3.0.2
# via
# -r requirements/ci.txt
# django-axes
django-jsonform==2.21.4
# via
# -r requirements/ci.txt
Expand All @@ -183,7 +179,7 @@ django-privates==2.0.0.post0
# via
# -r requirements/ci.txt
# django-simple-certmanager
django-redis==5.2.0
django-redis==5.4.0
# via -r requirements/ci.txt
django-relativedelta==2.0.0
# via
Expand Down
7 changes: 1 addition & 6 deletions src/objects/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,10 @@
# will be forgotten. Can be set to a python timedelta object or an integer. If
# an integer, will be interpreted as a number of hours. Default: None
AXES_COOLOFF_TIME = 1
# If True only locks based on user id and never locks by IP if attempts limit
# exceed, otherwise utilize the existing IP and user locking logic Default:
# False
AXES_ONLY_USER_FAILURES = True
# If set, specifies a template to render when a user is locked out. Template
# receives cooloff_time and failure_limit as context variables. Default: None
AXES_LOCKOUT_TEMPLATE = "account_blocked.html"
AXES_USE_USER_AGENT = True # Default: False
AXES_LOCK_OUT_BY_COMBINATION_USER_AND_IP = True # Default: False
AXES_LOCKOUT_PARAMETERS = [["ip_address", "user_agent", "username"]]

# The default meta precedence order
IPWARE_META_PRECEDENCE_ORDER = (
Expand Down

0 comments on commit e69dd12

Please sign in to comment.