# Field Component validators

**The validators of the `Loki_Components` module are extended by the `Loki_FieldComponents` module.**

## Existing validators
The `Loki_FieldComponents` module adds the following validators:

- `password_complexity`

## Password complexity
The `password_complexity` validator works both client-side and server-side and uses 3 parameters to enforce password complexity:

- The minimum number of characters within a password. Defaults to `8`.
- The minimum number of numerical characters within a password. Defaults to `2`.
- The minimum number of non-alphanumerical characters within a password. Defaults to `2`.

The values of these parameters can be modified via a DI-type of the class `Loki\Field\ViewModel\PasswordComplexity`.
