Hi,

I want to allow only active users to login and I used for this: 
public function beforeFilter() {
   parent::beforeFilter();
   $this->Auth->userScope = array('User.usr_active' => '1');
}

public function login() {
   if ($this->Auth->login()) {
   ...


But I can still login with inactive users ( usr_active == 0 ) 

How can I make the the sql statement visible the auth function is using to 
check for the user?
I have the feeling that the active is just ignored.

How can I debug this in cake 2.1 ?

Thanks

-- 
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

Reply via email to