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)