Hi all,
I've setup the Auth component in the beforeFilter() method of
app_controller.php. Even though I've set it to allow all, it redirects
to the login page for every URL. When I echo and die, it seems to be
redirecting in the Auth component startup() function, before it even
gets to the beforeFilter() where I allow all. Here is my
beforeFilter():

       if (isset($this->Auth))
       {
           $this->Auth->userModel = 'User';
           $this->Auth->hash = 'md5';
           $this->Auth->loginAction = array('controller' => 'users',
'action' => 'login');
           $this->Auth->loginError = 'Login failed.  Invalid username
or password.';
           $this->Auth->authError = 'You are not authorized to access
that location.';
           $this->Auth->autoRedirect = false;
           $this->Auth->allow('*');
       }

Anyone have any ideas?
--~--~---------~--~----~------------~-------~--~----~
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