$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, "mariacheu...@gmail.com" <mariacheu...@gmail.com>
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 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:
Post a Comment