diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-06 18:14:46 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-06 18:14:46 -0400 |
commit | 570ddaca48eedce6e3f0b2753a9b092c34efab5a (patch) | |
tree | cce9553021b0a8c8045e8dc535a454ecfa7ac4d2 /models/User.php | |
parent | bb6e8272e9784d02460e346df99489577a3ea233 (diff) | |
download | otakuhub-570ddaca48eedce6e3f0b2753a9b092c34efab5a.tar.xz |
Disabled password validator
Diffstat (limited to 'models/User.php')
-rw-r--r-- | models/User.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/models/User.php b/models/User.php index 920c6a7..bf9eec2 100644 --- a/models/User.php +++ b/models/User.php @@ -76,13 +76,12 @@ class User extends \lithium\data\Model { 'email' => array(array('email', 'message' => 'The email address is not valid.'), array('notEmpty', 'message' => 'An email address must be entered.'), array('isUniqueEmail', 'message' => 'That email address is already in use. Did you forget your password?') - ), + ) /*, - - //Passwords validation is invented. - 'password' => array(array('lengthBetween' =>array('min' => '6', 'max' =>'20'), + + 'newpass' => array(array('lengthBetween' => array('min' => '6', 'max' =>'20'), 'message' => 'Your password must be between 6 and 20 characters') - ) /*, + )*/ /*, //It's always possible for people to submit invalid data using cURL or something. 'gender' => array('isValidGender', 'message' => 'Please check for dangly bits or lack thereof.') |