diff --git a/app/Controller/Component/MiconwareSessionComponent.php b/app/Controller/Component/MiconwareSessionComponent.php index 3bf2d76..3f0300b 100755 --- a/app/Controller/Component/MiconwareSessionComponent.php +++ b/app/Controller/Component/MiconwareSessionComponent.php @@ -76,7 +76,7 @@ class MiconwareSessionComponent extends Component { public function login($mail,$password){ $users=$this->User->find('first', array( 'fields' => array('User.id','User.password'), - 'conditions' => array('User.mail' => $mail) + 'conditions' => array('User.mail' => $mail,'User.is_active'=>true) )); if($this->validate_password($password,$users['User']['password']) and !$this->isLoggedin()){ echo $users['User']['id'];