Difference between #2 and #3 of
Model password confirmation field.

Revision #3 has been created by oatcpe on May 21, 2012, 8:39:31 AM with the memo:

correct medel senario on 'update'
« previous (#2) next (#4) »


Title unchanged

Model password confirmation field.

Category unchanged


Yii version unchanged

Tags unchanged

password confirm, password, confirm

Content changed

// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
//password and repeat password
array('password, repeat_password', 'required', 'on'=>'
resetPasswordupdate, insert'),
array('password, repeat_password', 'length', 'min'=>6, 'max'=>40),
array('password', 'compare', 'compareAttribute'=>'repeat_password'),

8 0
Viewed: 75 722 times
Version: 1.1
Category: How-tos
Written by: twisted1919
Last updated by: PashaL
Created on: Nov 25, 2011
Last updated: 5 years ago
Update Article


View all history