mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
Update netbox/utilities/password_validation.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
329f7c3295
commit
b57de257b5
@ -15,7 +15,7 @@ class NumericAlphaPasswordValidator:
|
|||||||
|
|
||||||
if not any(char.isupper() for char in password):
|
if not any(char.isupper() for char in password):
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_("Password should have at least one uppercase letter"),
|
_("Password must have at least one uppercase letter."),
|
||||||
)
|
)
|
||||||
|
|
||||||
if not any(char.islower() for char in password):
|
if not any(char.islower() for char in password):
|
||||||
|
Loading…
Reference in New Issue
Block a user