Yii Framework Forum: Password Strength Validator - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Password Strength Validator Validates ipassword strength Rate Topic: -----

#1 User is offline   Ivica 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 315
  • Joined: 25-May 11

Posted 20 July 2011 - 12:15 AM

This is my first yii extension. On project that I worked, I had to validate if user password is strong, and for this purpose, I developed extension, that I can use in other project too. Extension is pretty simple.


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)


Zurmo: Yii Powered Open Source CRM
zurmo.org
0

#2 User is offline   kiran sharma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 492
  • Joined: 21-May 11
  • Location:India

Posted 20 July 2011 - 01:01 AM

Looks good, will review after implementation.
Thanks,
Kiran Sharma.
0

#3 User is offline   Harry Tang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 10-August 09

Posted 20 July 2011 - 02:17 AM

You may add your ext to Yii Extension Library : http://www.yiiframew...com/ext/create/
0

#4 User is offline   Ivica 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 315
  • Joined: 25-May 11

Posted 22 July 2011 - 05:45 AM

View PostHarry Tang, on 20 July 2011 - 02:17 AM, said:

You may add your ext to Yii Extension Library : http://www.yiiframew...com/ext/create/

I just added extension to library:
http://www.yiiframew...sswordstrength/
Zurmo: Yii Powered Open Source CRM
zurmo.org
0

#5 User is offline   gukan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 23-August 11

Posted 12 September 2011 - 03:51 AM

Many thanks,
I looking for with spl charter and password should not have a first name and last name
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users