diff options
Diffstat (limited to 'models')
-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.') |