fizista / django-password-validators

Additional libraries for validating passwords in Django.
BSD 3-Clause "New" or "Revised" License
51 stars 30 forks source link

Validation requirements cannot be disabled for help_texts #9

Closed JeroenvO closed 4 years ago

JeroenvO commented 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: image

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

JeroenvO commented 4 years ago

ah, i should set self.special_characters: to None, then it works.