Wednesday, February 4, 2009

Re: Auth component not working in 1.2.1.8004

I don't think so, I have the following 2 lines in routes.php

Router::connect('/login', array('controller' => 'user', 'action' =>
'login'));
Router::connect('/logout', array('controller' => 'user', 'action' =>
'logout'));

For 1.2.0.7962 the auth component startup function evaluates both $url
and $loginAction to /login and the test on line 290 is false and
authentication proceeds.
However, in 1.2.1.8004 it evaluates $url to /usr/login and
$loginAction to /login so the test, now on line 305, is true and
authentication exits.
With the 2 router lines removed, $loginAction evaluates to /usr/login
so authentication again succeeds.

I suspecty that this is where the problem lies.

Mal

On 4 Feb, 00:36, Gwoo <gwoo.cake...@gmail.com> wrote:
> sounds like you have the wrong fields. Everything works just fine.
> Please see the AuthComponent test cases in the nightly build or svn
> version.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: