From e9365fa55ec25d7658a75ca7fb0632013374d876 Mon Sep 17 00:00:00 2001 From: Nathan Swain Date: Fri, 1 Sep 2023 14:23:36 -0600 Subject: [PATCH] Replace deprecated Django Axes setting (#986) * Replace deprecated Django Axes setting * Black --------- Co-authored-by: sdc50 --- tethys_portal/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tethys_portal/settings.py b/tethys_portal/settings.py index 0aa8dd715..d84a303a7 100644 --- a/tethys_portal/settings.py +++ b/tethys_portal/settings.py @@ -462,7 +462,7 @@ AXES_ENABLED = not DEBUG AXES_FAILURE_LIMIT = 3 AXES_COOLOFF_TIME = dt.timedelta(hours=0.5) -AXES_ONLY_USER_FAILURES = True +AXES_LOCKOUT_PARAMETERS = ["username"] AXES_ENABLE_ADMIN = True AXES_LOCKOUT_TEMPLATE = "tethys_portal/accounts/lockout.html" AXES_VERBOSE = True