$userValidators->validateNewPassword()
Validates a new password against the password policy configured in the auth.passwords option
$userValidators->validateNewPassword(string $password, bool $allowEmpty = false): void
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $passwordrequired | string |
no default value | |
| $allowEmpty | bool |
false
|
If true, an empty password is accepted, which is needed for users that are created without a password |