Provides password validation.
| package | OwpPasswordValidator |
|---|
validate(string $value, object $constraint) : mixed
| method | |
|---|---|
| access | public |
| author | Brian Tafoya |
| version | 1.0 |
stringPassword value
objectConstraints
mixedViolation array or false if no violationsaddViolation(string $violation)
| method | |
|---|---|
| access | private |
| author | Brian Tafoya |
| version | 1.0 |
stringViolation to record
$charset : string
'UTF-8'$constraint : object
$maxLength : string
0$minLength : string
5$missingLettersMessage : string
'Your password must include at least one letter.'$missingNonAlphanumericMessage : string
'Your password must include at least one non-alphanumeric character.'$missingNumbersMessage : string
'Your password must include at least one digit.'$requireCaseDiff : string
false$requireCaseDiffMessage : string
'Your password must include both upper and lower case letters.'$requireLetters : string
true$requireNonAlphanumeric : string
false$requireNumbers : string
false$tooLongMessage : string
'Your password must not exceed {{maxlength}} characters.'$tooShortMessage : string
'Your password must be at least {{minlength}} characters long.'$violations : string
array()