Hello everyone,

I'm trying to accomplish a user profile page where the user has the
possibility to edit his / her details:
- nick name
- e-mail address
- newsletter

- old password
- new password
- new password 2x

It works awesome however I don't want the Model to validate the three
latter fields when the 'new password' field is empty. How do I tell
the Model to do this? I have 3 rules for these each fields (there is a
plus validation for 'old password' to check whether it matches with
the one in the database and also there is a validation for the two new
password fields to check whether they match or not).

I was thinking of the beforeValidate() function but don't have a clue
what to declare there.

Thank you for your help in advance.

Regards,

Colmar

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to