This is an extension to enable the jQuery pstrength plugin for strong password validation on the client side.
Built at Yii 1.1.6 and tested on 1.1.7, but should be compatible with all the 1.1.x versions
See the included README file.
To use, simply call the EStrongPassword widget, passing in the model that contains the attribute to be tested, and specifying what attribute you wish to test (not limited to a 'password' field, though that will be selected by default').
<div class="row"> <?php echo $form->labelEx($model,'password'); <?php $this->widget('ext.EStrongPassword.EStrongPassword', array('form'=>$form, 'model'=>$model, 'attribute'=>'password')); <?php echo $form->error($model,'password'); </div>
Total 5 comments
Great .. I will update it on my project. Thanks
I've updated the source code on the github repo with the change and will upload the new version soon.
I had also updated (but not yet released) the publishing path to use dirname( FILE ) rather than the extension path name, so that if you move it it won't break the extension. This change is also in the github version.
I think I found a small bug in EStrongPassword, at line 80, replace :
... with ...
...and then everything works fine. Thanks for the extension.
I hope you find it helpful, and if anything is confusing, please let me know!
thanks for the extension!
Leave a comment
Please login to leave your comment.