From 6249b8993232feb470b9dea088aa9e4eb529343f Mon Sep 17 00:00:00 2001 From: FrediL Date: Fri, 21 Jun 2013 03:15:56 +0200 Subject: [PATCH] Change validators from 'length' to 'string' --- apps/advanced/common/models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/advanced/common/models/User.php b/apps/advanced/common/models/User.php index 7830718..24752bf 100644 --- a/apps/advanced/common/models/User.php +++ b/apps/advanced/common/models/User.php @@ -79,7 +79,7 @@ class User extends ActiveRecord implements Identity 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'), @@ -87,7 +87,7 @@ class User extends ActiveRecord implements Identity array('email', 'unique', 'message' => 'This email address has already been taken.'), array('password', 'required'), - array('password', 'length', 'min' => 6), + array('password', 'string', 'min' => 6), ); }