estrongpassword Extension to enable the jQuery pstrength plugin for Password Strength

  1. Requirements
  2. Usage
  3. Resources

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