| | 18 | /* |
| | 19 | public $validate = array( |
| | 20 | 'login' => array('alphanumeric' => array( |
| | 21 | 'rule' => 'alphaNumeric', |
| | 22 | 'required' => true, |
| | 23 | 'message' => 'Alphabets and numbers only' |
| | 24 | ), |
| | 25 | 'between' => array( |
| | 26 | 'rule' => array('between', 5, 15), |
| | 27 | 'message' => 'Between 5 to 15 characters' |
| | 28 | ) |
| | 29 | ), |
| | 30 | 'password' => array( |
| | 31 | 'rule' => array('minLength', '8'), |
| | 32 | 'message' => 'Mimimum 8 characters long' |
| | 33 | ), |
| | 34 | 'email' => 'email', |
| | 35 | 'born' => array( |
| | 36 | 'rule' => 'date', |
| | 37 | 'message' => 'Enter a valid date', |
| | 38 | 'allowEmpty' => true |
| | 39 | ) |
| | 40 | ); */ |