Update netbox/utilities/password_validation.py

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Arthur Hanson 2024-08-30 10:36:29 -07:00 committed by GitHub
parent 37b724c6bc
commit 329f7c3295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ class NumericAlphaPasswordValidator:
def validate(self, password, user=None): def validate(self, password, user=None):
if not any(char.isdigit() for char in password): if not any(char.isdigit() for char in password):
raise ValidationError( raise ValidationError(
_("Password should have at least one numeral"), _("Password must have at least one numeral."),
) )
if not any(char.isupper() for char in password): if not any(char.isupper() for char in password):