Yii 1.1: estrongpassword

Extension to enable the jQuery pstrength plugin for Password Strength
22 followers

This is an extension to enable the jQuery pstrength plugin for strong password validation on the client side.

Requirements

Built at Yii 1.1.6 and tested on 1.1.7, but should be compatible with all the 1.1.x versions

Usage

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>

Resources

Total 5 comments

#3446 report it
Raoul at 2011/04/13 01:11pm
so reactive !!

Great .. I will update it on my project. Thanks

#3443 report it
Dana at 2011/04/13 12:09pm
Thanks Raoul

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.

#3442 report it
Raoul at 2011/04/13 12:03pm
very useful ..

I think I found a small bug in EStrongPassword, at line 80, replace :

$reqs = CJSON::encode($this->requirement);

... with ...

$reqs = CJSON::encode($this->requirementOptions);

...and then everything works fine. Thanks for the extension.

#3286 report it
Dana at 2011/03/31 12:35pm
You're welcome =)

I hope you find it helpful, and if anything is confusing, please let me know!

#3285 report it
nickcv at 2011/03/31 12:11pm
gonna try this for sure

thanks for the extension!

Leave a comment

Please to leave your comment.

Create extension