Password Confirm Validation CakePHP
I have searched far and wide, tried every trick in the book, but I still can't get my CakePHP application to perform simple Password Confirm validation. I've tried creating a custom validation rule like this: 'passwordequal' => array('rule' => 'checkpasswords' , 'message' => 'Passwords Do Not Match') Then defined 'checkpasswords' like this: public function checkpasswords(){ if(strcmp($this->data['User']['new_password'],$this->data['User']['confirm_password']) == 0 ) { return true; } return false; } 'new_password' and 'confirm_password' are the password input fields. This didn't work. Then I