From 9c4573fd807d29ef2077a9c79be597fad54c1f3e Mon Sep 17 00:00:00 2001 From: Pravesh Sharma Date: Tue, 17 Jan 2023 17:20:32 +0530 Subject: [PATCH] Ensure that all parts of the application recommend and enforce the same length of passwords. #5705 --- web/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/config.py b/web/config.py index 4774043f5..414454195 100644 --- a/web/config.py +++ b/web/config.py @@ -192,6 +192,9 @@ ALLOWED_HOSTS = [] # Hashing algorithm used for password storage SECURITY_PASSWORD_HASH = 'pbkdf2_sha512' +# Minimum password length +SECURITY_PASSWORD_LENGTH_MIN = 6 + # Reverse Proxy parameters # You must tell the middleware how many proxies set each header # so it knows what values to trust.