Class Password
Check if the input password is secure enough
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Password
public
boolean
|
|
protected
boolean
|
|
public
array
|
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$lengthTooShortMessage
|
#
'%name% must have a length greater than %minLength%'
|
protected
string
|
$lengthTooLongMessage
|
#
'%name% must have a length lower than %maxLength%'
|
protected
string
|
$missingCharTypeMessage
|
#
'%name% must contains %missingType%'
|
protected
string
|
$missingCharMessage
|
#
'%name% must contains %missingCount% of these characters : %missingType%'
|
protected
string
|
$name
The name display in error message |
#
'Password'
|
protected
array
|
$typeNames
The names of character type |
#
array(
'digit' => 'digits (0-9)',
'letter' => 'letters (a-z)',
'lower' => 'lowercase letters (a-z)',
'upper' => 'uppercase letters (A-Z)',
'nonAlnum' => 'non-alphanumeric (For example: !, @, or #) characters'
)
|
protected
integer
|
$minLength
|
|
protected
integer
|
$maxLength
|
|
protected
boolean
|
$needDigit
|
#
false
|
protected
boolean
|
$needLetter
|
#
false
|
protected
boolean
|
$needNonAlnum
|
#
false
|
protected
integer
|
$atLeastPresent
|
#
0
|
protected
array
|
$regexMap
|
#
array(
'digit' => '0-9',
'letter' => 'a-zA-Z',
'lower' => 'a-z',
'upper' => 'A-Z',
'nonAlnum' => '^0-9a-zA-Z'
)
|
protected
integer
|
$missingCount
The parameter for $missingCharMessage |
|
protected
string
|
$missingType
The parameter for $missingCharTypeMessage and $missingCharMessage |
|
protected
array
|
$missingTypes
The temp variable for message parameter |
#
array()
|
$errors,
$negative,
$negativeMessage,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|