Skip to content

Commit

Permalink
Merge pull request yiisoft#564 from FrediL/master
Browse files Browse the repository at this point in the history
Change validators from 'length' to 'string'
  • Loading branch information
resurtm committed Jun 21, 2013
2 parents 2279313 + 6249b89 commit 5f930f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/advanced/common/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ public function rules()
return array(
array('username', 'filter', 'filter' => 'trim'),
array('username', 'required'),
array('username', 'length', 'min' => 2, 'max' => 255),
array('username', 'string', 'min' => 2, 'max' => 255),

array('email', 'filter', 'filter' => 'trim'),
array('email', 'required'),
array('email', 'email'),
array('email', 'unique', 'message' => 'This email address has already been taken.'),

array('password', 'required'),
array('password', 'length', 'min' => 6),
array('password', 'string', 'min' => 6),
);
}

Expand Down

0 comments on commit 5f930f9

Please sign in to comment.