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

Changes

Title unchanged

Model password confirmation field.

Category unchanged

How-tos

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'=>'
update, insert'),
array('password, repeat_password', 'length', 'min'=>6, 'max'=>40),
array('password', 'compare', 'compareAttribute'=>'repeat_password'),

);
}
[...]
8 0
19 followers
Viewed: 95 099 times
Version: 1.1
Category: How-tos
Written by: twisted1919
Last updated by: PashaL
Created on: Nov 25, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history