cakephp password validation

l2oot

New Member
\[code\]var $validate = array( 'password' => array( 'passwordlength' => array('rule' => array('between', 8, 50),'message' => 'Enter 8-50 chars'), 'passwordequal' => array('checkpasswords','message' => 'Passwords dont match') ));function checkpasswords(){ return strcmp($this->data['Airline']['password'],$this->data['Airline']['confirm password']);}\[/code\]This code is not working and always gives the error message even if they match. Also when i do a edit i get the followoing error as there is no password field. is there any fix\[code\]Undefined index: password [APP/models/airline.php, line 25]\[/code\]
 
Back
Top