Another wild guess (I'm pretty new to CakePHP):
Do you have beforeFilters in your controllers, and if so, are they
calling parent::beforeFilter()?
On Sep 26, 9:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi Martin,
> Thanks for that, didn't work though :(
>
> On Sep 26, 1:39 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Bit of a wild guess:
> > $this->Auth->allow(); // will allow the current request.
> > It is the only idea I get from seeing your beforeFilter.
> > I have never tried allow('*') and since Auth can be a little picky
> > about settings you never know, right?
>
> > On Sep 26, 12:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---