If you use Auth password field is already hashed so it's length more then 15 symbols.
On Mar 24, 1:39 am, timstermatic <[email protected]> wrote: > Hi all, > > Here is part of a validate array I have in a model: > > 'username' => array( > > 'loginRule-1'=>array('rule'=>'alphaNumeric','message'=>'Username > must be alphanumeric - no spaces.' ), > 'loginRule-2'=>array('rule' => > array('between',5,15),'message' > => 'Username must be between 5 and 15 characters.'), > ), > 'email' => array('rule' => 'email','required' => true), > 'password' => array( > > 'passwordRule-1'=>array('rule'=>'alphaNumeric','message'=>'Password > must be alphanumeric - no spaces.' ), > 'passwordRule-2' => array('rule' => array('between', > 5, > 15),'message' => 'Password must be between 5 to 15 characters' ) > ) > > The final rule in the array "passwordRule-2" always fails and returns > the message "Password must be between 5 to 15 characters.". > > Does anyone have any pointers as to why this is happening. > > TIA > > Tim Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
