summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-06 18:14:46 -0400
committerMichael Francis <edude03@gmail.com>2011-07-06 18:14:46 -0400
commit570ddaca48eedce6e3f0b2753a9b092c34efab5a (patch)
treecce9553021b0a8c8045e8dc535a454ecfa7ac4d2
parentbb6e8272e9784d02460e346df99489577a3ea233 (diff)
downloadotakuhub-570ddaca48eedce6e3f0b2753a9b092c34efab5a.tar.xz
Disabled password validator
-rw-r--r--models/User.php9
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.')