new \Phalcon\Validation\Validator\PasswordStrength([
'minScore' => {[1-4] - minimal password score},
'message' => {string - validation message},
'allowEmpty' => {bool - allow empty value}
])
Afficher le fichier
Open project: phalcon/incubator
Class Usage Examples
Méthode | Description | |
---|---|---|
validate ( Phalcon\Validation $validation, string $attribute ) : boolean | Value validation |
Méthode | Description | |
---|---|---|
countScore ( string $value ) : integer | Calculates password strength score |