well, thats another problem, of course. without last=>true if will show the wrong validation message
but your empty string will always be hashed as well (using cake1.3) thats why you shouldnt use "password" as field name. I recommend reading: http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/ On 3 Dez., 18:30, heohni <heidi.anselstet...@consultingteam.de> wrote: > So it should be this way? > 'password' => array( > 'required' => array('rule' => 'notEmpty', 'message' => > 'EmptyPassword', 'required' => true, 'allowEmpty' => false, 'last' => > true), > 'between' => array('rule' => array('between', 6,15), > 'message' => 'ToShortPassword', 'last' => true) > ) > But that is NOT changing anything? With an empty password field I > still get the ToShortPassword message? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php