Skip to content

Commit

Permalink
👽 Replace deprecated django-axes settings
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Jan 30, 2024
1 parent 3b56b5c commit 23fe0f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/objecttypes/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,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 23fe0f1

Please sign in to comment.