Sfoglia il codice sorgente

Disabled password validator

Michael Francis 14 anni fa
parent
commit
570ddaca48
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4 5
      models/User.php

+ 4 - 5
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.')