From b8d7ce544b1f5aa147e786cc8a6b2387fa2d7f3f Mon Sep 17 00:00:00 2001 From: mattiagiupponi <51856725+mattiagiupponi@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:41:15 +0100 Subject: [PATCH] Update settings.py --- geonode/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geonode/settings.py b/geonode/settings.py index 877a55f57a9..c8cdcea39fe 100644 --- a/geonode/settings.py +++ b/geonode/settings.py @@ -1942,7 +1942,7 @@ def get_geonode_catalogue_service(): # Since django-allauth 0.43.0. ACCOUNT_SIGNUP_REDIRECT_URL = os.environ.get("ACCOUNT_SIGNUP_REDIRECT_URL", os.getenv("SITEURL", _default_siteurl)) -ACCOUNT_RATE_LIMITS = {"login_failed": int(os.getenv("ACCOUNT_LOGIN_ATTEMPTS_LIMIT", "3"))} +ACCOUNT_RATE_LIMITS = {"login_failed": os.getenv("ACCOUNT_LOGIN_ATTEMPTS_LIMIT", "10/m/ip,5/5m/key")} ACCOUNT_MAX_EMAIL_ADDRESSES = int(os.getenv("ACCOUNT_MAX_EMAIL_ADDRESSES", "2")) SOCIALACCOUNT_AUTO_SIGNUP = ast.literal_eval(os.environ.get("SOCIALACCOUNT_AUTO_SIGNUP", "True"))