On Mar 24, 2011, at 02:17, Zaky Katalan-Ezra wrote: > Did you put this in app_controller?
Nope, but I'll try it, thanks. Where in the users plugin documentation does it say to do this? > public function beforeFilter() { > $this->Auth->authorize = 'controller'; > $this->Auth->fields = array('username' => 'email', 'password' => > 'passwd'); > $this->Auth->loginAction = array('plugin' => 'users', 'controller' => > 'users', 'action' => 'login', 'admin' => false); > $this->Auth->loginRedirect = '/'; > $this->Auth->logoutRedirect = '/'; > $this->Auth->authError = __('Sorry, but you need to login to access > this location.', true); > $this->Auth->loginError = __('Invalid e-mail / password combination. > Please try again', true); > $this->Auth->autoRedirect = true; > $this->Auth->userModel = 'User'; > $this->Auth->userScope = array( > 'User.active' => 1); > > if ($this->Auth->user()) { > $this->set('userData', $this->Auth->user()); > $this->set('isAuthorized', ($this->Auth->user('id') != '')); > } > > } > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php