Consistency with comment in settings.py

This commit is contained in:
Alexandre Aubin 2018-10-25 19:30:34 +00:00
parent 8a0c4509fd
commit c313084dc3

View file

@ -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)