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.
To install this extension, simply unzip the contents of the zip file into your protected/extensions/validators folder, and add following code to your model class whose password attribute you want to validate:
//rules method in your model class
public function rules()
{
return array(
array('password','ext.validators.EPasswordStrength', 'min'=>7),
);
}
Attached File(s)
-
EPasswordStrength.zip (742bytes)
Number of downloads: 95

Help















