Model / Form validator.
Yii 1.1 or above ...
It's to use for a form/model validation rule.
public function rules() { return array( array('password','ext.SPasswordValidator.SPasswordValidator') ); }
Number of upper case chars set to 1, minimum number of characters set to 10.
public function rules() { return array( array('password','ext.SPasswordValidator.SPasswordValidator', 'up' => 1, 'min' => 10) ); }
uncompress the archive in protected/extensions/. So path to php file will be protected/extensions/SPasswordValidator/SPasswordValidator.php.
Be the first person to leave a comment
Please login to leave your comment.