This validator checks if password is strong enough. Password is strong enough, if it have defined minimum number of characters(which can be changed), and if it contain at least one upper case letter, at least one lower case letter, and at least one number.
Class is developed and tested using Yii version 1.1.7
Unzip the contents of the zip file onto your protected/extensions/validators folder, then edit rules method of the model class as following:
public function rules() { return array( array(array('password','ext.validators.EPasswordStrength', 'min'=>7), ); }
Total 1 comment
Leave a comment
Please login to leave your comment.