It seem the $this->Auth->autoRedirect didn't function.
On Sat, Jun 27, 2009 at 3:10 AM, PHPScriptKiddy <[email protected]>wrote: > > Hey guys, I'm working on my first ACL setup, but am having some > trouble with the login. I have been modelling everything after the ACL > tutorial in the cakephp cookbook. Ok here's my issue... > > Within the app_controller i have the following > > function beforeFilter() { > //Configure AclComponent > //$this->Acl->Aco->create(array('parent_id' => null, 'alias' => > 'controllers')); > //$this->Acl->Aco->save(); > > //Configure AuthComponent > $this->Auth->actionPath = 'controllers/'; > $this->Auth->authorize = 'actions'; > $this->Auth->logoutRedirect = array('controller' => 'users', > 'action' > => 'login'); > $this->Auth->loginRedirect = array('controller' => 'users', 'action' > => 'index'); > $this->Auth->allowedActions = array('display'); > $this->Auth->loginAction = array('controller' => 'users', 'action' > => > 'login'); > } > > However, whenever I login instead of being directed to 'users/index' I > am dumped back to the login screen with an authError, but I am > actually logged in. Now if I try logging in again, everything works > properly. I assume that it is trying to direct me to 'users/index' > before actually logging me in, but I can't find anywhere to check > this. > > Does anyone have any useful tips? > > Thanks in advance! > > > > -- Thanks Joshua --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
