mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
Update netbox/utilities/password_validation.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
37b724c6bc
commit
329f7c3295
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user