Closed JeroenvO closed 4 years ago
If no validation for special characters is wanted for instance, either set min_length_special to zero, which results in this help text:
Or disable the line in the config, but then the default is set to 1 character.
Suggestion to change all if-statements in https://github.com/fizista/django-password-validators/blob/master/django_password_validators/password_character_requirements/password_validation.py#L80 to if x.length == 0
if x.length == 0
ah, i should set self.special_characters: to None, then it works.
If no validation for special characters is wanted for instance, either set min_length_special to zero, which results in this help text:
Or disable the line in the config, but then the default is set to 1 character.
Suggestion to change all if-statements in https://github.com/fizista/django-password-validators/blob/master/django_password_validators/password_character_requirements/password_validation.py#L80 to
if x.length == 0