I already found the solution myself. It was because of the stupid
pages controller :-(

http://stackoverflow.com/questions/3302798/multiple-login-forms-submitting-to-one-login-action

On 22 jul, 19:05, cricket <[email protected]> wrote:
> On Wed, Jul 21, 2010 at 3:02 PM, tersmitten
>
> <[email protected]> wrote:
> > I'm having 2loginformsin my (cake) application.Oneon the home
> > page (served by pages controller) andonein my user controller. The
> >onefrom my user controller is working fine. But when I try tologin
> > from the homepage I get a blank page and I see in firebug I got a 404.
> > The strange thing is that the session is setup OK.
>
> Set debug to 2. When it's at 0, Cake throws a 404 when it encounters
> an error. This is so it doesn't reveal them in production mode. You
> probably have some unrelated error happening.
>
> > It's looks like it has something to do with $this->Auth->autoRedirect
> > = false (which is set in user controller beforeFilter()). What could
> > be the problem?
>
> That should go in AppController::beforeFilter()

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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