Hmmm.. shouldn't it be:
$this->Auth->loginRedirect = array('controller' => 'users'); // no
action
$this->Auth->logoutRedirect = '/'; // no array
Or am I missing something?
On Jul 2, 12:04 pm, Populus <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm having a problem with the auth component not redirecting properly
> after logging in.
>
> Sometimes it redirects perfectly fine, sometimes it gives me a blank
> page, sometimes it redirects to an image on the previous page...
>
> i'm using this code in app_controller.php
>
> function beforeFilter()
> {
> if (isset($this->Auth))
> {
> $this->Auth->loginRedirect = array('controller' =>
> 'users',
> 'action' => '/');
> $this->Auth->logoutRedirect = array('controller' =>
> '/');
> $this->Auth->authorize = 'actions';
>
> if ($this->Acl->check("Guest",
> $this->Auth->action($this->params['controller'].'/'.$this->params['action']),
> "read"))
>
> {
> $this->Auth->allow();
> }
> $this->set('auth', $this->Auth);
> }
> }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---