I'm trying to validate that "password" and "confirm password" match. I
can't seem to get invalidate() to work at all in any situation.
Here is my code:
function beforeSave()
{
if($this->data['User']['password'] != $this->data['User']
['confirm_password'])
{
$this->invalidate('password', 'Passwords do not match');
return false;
}
}
I've also tried doing this beforeValidate() and tried returning true.
Nothing I've done has gotten this to work.
I'm using 1.2 pre-beta.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---