Difference between #1 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'=>'
resetPassword, insert'),
array('password, repeat_password', 'length', 'min'=>6, 'max'=>40),
array('password', 'compare', 'compareAttribute'=>'repeat_password'),
[...]
Hope it helps :)
 
 
[Chinese Version](http://www.yiiwiki.com/wiki/view/id/20/title/%E6%A8%A1%E5%9E%8B%E4%B8%AD%E7%9A%84%E7%A1%AE%E8%AE%A4%E5%AF%86%E7%A0%81%E5%AD%97%E6%AE%B5 "")
8 0
19 followers
Viewed: 95 093 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