|
@@ -76,13 +76,12 @@ class User extends \lithium\data\Model {
|
|
|
'email' => array(array('email', 'message' => 'The email address is not valid.'),
|
|
'email' => array(array('email', 'message' => 'The email address is not valid.'),
|
|
|
array('notEmpty', 'message' => 'An email address must be entered.'),
|
|
array('notEmpty', 'message' => 'An email address must be entered.'),
|
|
|
array('isUniqueEmail', 'message' => 'That email address is already in use. Did you forget your password?')
|
|
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')
|
|
'message' => 'Your password must be between 6 and 20 characters')
|
|
|
- ) /*,
|
|
|
|
|
|
|
+ )*/ /*,
|
|
|
|
|
|
|
|
//It's always possible for people to submit invalid data using cURL or something.
|
|
//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.')
|
|
'gender' => array('isValidGender', 'message' => 'Please check for dangly bits or lack thereof.')
|