tags:

views:

120

answers:

1

Hi, I'm using the Acl and Auth components in CakePHP, actually the application are validating the Username and Password of the user, but now I need to validate if the user is active. Actually I use the

$this->Auth->autoRedirect = false;

to do some stuff after the authentication. There's a way to do this without making another query to the database in the login action? Thanks

+1  A: 
$this->Auth->userScope = array('User.active'=>1);
Funky Dude
Thanks, I need to read more carefully the api documentation.