I have 2 controllers that require authentication, let's say: - admins - users
Each of this controllers requires a specific table for login information, so far I can use the Auth component to login correctly to each controller the issue I'm having is that once the user does the login into one of the controllers if he navigates to the other it will keep himself logged in without requiring the loging information of that controller even though the username/password combination it's not the same. This is currently a migration of a application done in cake 1.3 where this was functioning correctly but since I'm new to cake I might be missing some step along the way. This is the code I'm using for one of the controllers, it's the same for the other controller just needs to change the "userModel" value function beforeFilter(){ $this->Auth->authenticate = array( AuthComponent::ALL => array( 'userModel' => 'Admin', 'scope' => array( 'Admin.status' => 'active', ) ), 'Form', 'Basic' ); } Thanks in advance -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.