PHP Class Phalcon\Validation\Validator\PasswordStrength

new \Phalcon\Validation\Validator\PasswordStrength([ 'minScore' => {[1-4] - minimal password score}, 'message' => {string - validation message}, 'allowEmpty' => {bool - allow empty value} ])
Inheritance: extends Phalcon\Validation\Validator
Datei anzeigen Open project: phalcon/incubator Class Usage Examples

Public Methods

Method Description
validate ( Phalcon\Validation $validation, string $attribute ) : boolean Value validation

Private Methods

Method Description
countScore ( string $value ) : integer Calculates password strength score

Method Details

validate() public method

Value validation
public validate ( Phalcon\Validation $validation, string $attribute ) : boolean
$validation Phalcon\Validation - validation object
$attribute string - validated attribute
return boolean