function NotCompromisedPassword::__construct
Parameters
array<string,mixed>|null $options:
positive-int|null $threshold The number of times the password should have been leaked to consider it is compromised (defaults to 1):
bool|null $skipOnError Whether to ignore HTTP errors while requesting the API and thus consider the password valid (defaults to false):
string[]|null $groups:
Overrides Constraint::__construct
File
-
vendor/
symfony/ validator/ Constraints/ NotCompromisedPassword.php, line 40
Class
- NotCompromisedPassword
- Checks if a password has been leaked in a data breach.
Namespace
Symfony\Component\Validator\ConstraintsCode
public function __construct(?array $options = null, ?string $message = null, ?int $threshold = null, ?bool $skipOnError = null, ?array $groups = null, mixed $payload = null) {
parent::__construct($options, $groups, $payload);
$this->message = $message ?? $this->message;
$this->threshold = $threshold ?? $this->threshold;
$this->skipOnError = $skipOnError ?? $this->skipOnError;
}