mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Use level 1 as default for everybody
This commit is contained in:
parent
4268c0d04d
commit
ded9b58575
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ DEFAULTS = OrderedDict([
|
|||
|
||||
# Password Validation
|
||||
# -1 disabled, 0 alert if listed, 1 8-letter, 2 normal, 3 strong, 4 strongest
|
||||
("security.password.admin.strength", {"type": "int", "default": 2}),
|
||||
("security.password.admin.strength", {"type": "int", "default": 1}),
|
||||
("security.password.user.strength", {"type": "int", "default": 1}),
|
||||
])
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ class PasswordValidator(object):
|
|||
self.validation_strength = int(settings[setting_key])
|
||||
except Exception as e:
|
||||
# Fallback to default value if we can't fetch settings for some reason
|
||||
self.validation_strength = 2 if profile == 'admin' else 1
|
||||
self.validation_strength = 1
|
||||
|
||||
def validate(self, password):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue