Update validate.go

This commit is contained in:
Srinjoy Sen Chowdhury 2024-08-16 18:52:26 +05:30
parent a3ced0d5a3
commit f3aef111d7

View file

@ -85,6 +85,7 @@ func ValidatePassword(password string, config PasswordConfig) error {
}
}
if config.RequireUppercase && !hasUppercase {
return ErrPasswordWeak
}