Commit 6249b899 by FrediL

Change validators from 'length' to 'string'

parent 22793139
...@@ -79,7 +79,7 @@ class User extends ActiveRecord implements Identity ...@@ -79,7 +79,7 @@ class User extends ActiveRecord implements Identity
return array( return array(
array('username', 'filter', 'filter' => 'trim'), array('username', 'filter', 'filter' => 'trim'),
array('username', 'required'), array('username', 'required'),
array('username', 'length', 'min' => 2, 'max' => 255), array('username', 'string', 'min' => 2, 'max' => 255),
array('email', 'filter', 'filter' => 'trim'), array('email', 'filter', 'filter' => 'trim'),
array('email', 'required'), array('email', 'required'),
...@@ -87,7 +87,7 @@ class User extends ActiveRecord implements Identity ...@@ -87,7 +87,7 @@ class User extends ActiveRecord implements Identity
array('email', 'unique', 'message' => 'This email address has already been taken.'), array('email', 'unique', 'message' => 'This email address has already been taken.'),
array('password', 'required'), array('password', 'required'),
array('password', 'length', 'min' => 6), array('password', 'string', 'min' => 6),
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment