mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
fix: 修改SECURITY_PASSWORD_MIN_LENGTH
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user