Hi all, I'm new to cake but am starting to pick it quite quickly now. One thing that has is causing me a bit of a head ache is getting some simple Authentication to work using Auth.
The problem I seam to be having is that login function on my UsersController is getting called twice when I click the Submit button when logging in. At least I do most of the time, on occasions it only gets called the once and I am logged in successfully. When the login function gets called for the first time it would appear that the user details have been checked and verified and the there is an attempt to redirect to the page I want to go to. However before i get there the login function appears to be being called a second time, this time the user credentials are not correct (i don;t think they are even set) so I'm redirected back to the login page with the message that "You are not authorized to access that location." As I mentioned, on occasions the second call to the login has not happened and I am successfully logged in, I can't tell you what is different to male this happen. I wish I knew. I'm a bit lost as to where to look next as I seam to be going round in circles. Best Regards Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---