diff --git a/src/yunohost/settings.py b/src/yunohost/settings.py index 357e94d77..d2526316e 100644 --- a/src/yunohost/settings.py +++ b/src/yunohost/settings.py @@ -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}), ]) diff --git a/src/yunohost/utils/password.py b/src/yunohost/utils/password.py index b064d909b..6b31285e7 100644 --- a/src/yunohost/utils/password.py +++ b/src/yunohost/utils/password.py @@ -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): """