Hey,
I've got what seems to be a weird problem. Here's some of the code in
my controller file
class UsersController extends AppController {
function beforeFilter()
{
parent::beforeFilter();
$this->Auth->allow('add');
$this->Auth->allow('index');
$this->Auth->allow('view');
$this->Auth->loginRedirect = array('controller' => 'users',
'action' => 'secure');
$this->Auth->logoutRedirect = array('controller' => 'users',
'action' => 'index');
}
function login()
{
}
function logout()
{
$this->redirect($this->Auth->logout());
}
}
Whenever I have both my loginRedirect and logoutRedirect defined my
loginRedirect does not seem to work, rather it my user is directed to
'index' not 'secure'. However if i do not have my logoutRedirect
defined it works just fine.
I have defined the same thing in my app_controller and it does the
same thing.
Am I setting this up incorrectly? Any ideas?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---