From 8ad78ffef8671bf65b1aafa9f41463b90774194e Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 5 Aug 2021 10:37:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9SECURITY=5FPASSWORD=5F?= =?UTF-8?q?MIN=5FLENGTH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/utils.py b/apps/users/utils.py index 9d4d3e32d..8b77a3fa0 100644 --- a/apps/users/utils.py +++ b/apps/users/utils.py @@ -322,7 +322,7 @@ def check_password_rules(password, user): if user.is_org_admin: min_length = settings.SECURITY_ADMIN_USER_PASSWORD_MIN_LENGTH else: - min_length = settings.SECURITY_PASSWORD_MIN_LEN + min_length = settings.SECURITY_PASSWORD_MIN_LENGTH pattern += '.{' + str(min_length-1) + ',}$' match_obj = re.match(pattern, password) return bool(match_obj)