Hi all, I'm at the latter stages of a big-ish CakePHP 1.2 project now (it's an online wine store with a bespoke shopping cart system, entirely developed by myself - which probably means it's full of bugs since I haven't had time to write full tests for the thing).
One of the requirements is for the customers to be able to log in, see their account details and previous orders, and crucially, to be able to amend their account details. This is the sticking point for me. I have the login/logout/register combination all working fully. It works very well, and even has the remember me cookie option working this time (which I was very surprised at, given how much hassle I had last time - I must have done something stupid). However, the editing of the customer account gives me trouble. I suspect it's something obvious, that I can't see because I'm too close to the problem (PEBCAC, probably). The original plan was to have separate screens where the user can change their email address, their password, and their address details. I ran into problems with the validation though. Because I have the password and email fields marked as required, when saving the forms without those specified I got errors. I know there's an option to only validate on update or create, but there doesn't appear to be the ability to validate differently if only a subset of the fields are being specified. Am I doing something stupid? How do other people handle this? Additionally, I think there could be some issues with having the remember me cookie, because the standard code provided by Chris Hartjes overwrites anything in $this->data['User']['email'] with the cookie if it's present. I'm tearing my hair out here, so any help is appreciated! Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---