From c313084dc3f07c444d4d0cab24021e24b04dde80 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Oct 2018 19:30:34 +0000 Subject: [PATCH] Consistency with comment in settings.py --- src/yunohost/utils/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/utils/password.py b/src/yunohost/utils/password.py index b1aa9050d..243e48a30 100644 --- a/src/yunohost/utils/password.py +++ b/src/yunohost/utils/password.py @@ -104,7 +104,7 @@ class PasswordValidator(object): Produces a summary-tuple comprised of a level (success, error, warning) and a message key describing the issues found. """ - if self.validation_strength <= 0: + if self.validation_strength < 0: return ("success", "") listed = password in SMALL_PWD_LIST or self.is_in_cracklib_list(password)