From 23fe0f18aeaf3d1b7aed03f6e138ec45081e5001 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Tue, 30 Jan 2024 13:59:11 +0100 Subject: [PATCH] :alien: Replace deprecated django-axes settings --- src/objecttypes/conf/base.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/objecttypes/conf/base.py b/src/objecttypes/conf/base.py index f15896e3..1ab91c6f 100644 --- a/src/objecttypes/conf/base.py +++ b/src/objecttypes/conf/base.py @@ -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 = (