diff --git a/bl-kernel/login.class.php b/bl-kernel/login.class.php index 463a9602..bb86952d 100644 --- a/bl-kernel/login.class.php +++ b/bl-kernel/login.class.php @@ -48,7 +48,7 @@ class Login { { if (Session::get('fingerPrint')===$this->fingerPrint()) { $username = Session::get('username'); - if (!empty($username) && $this->users->getUserDB($username) !== false) { + if (!empty($username) && $this->users->exists($username)) { return true; } else { Log::set(__METHOD__.LOG_SEP.'Session username empty or user not found, destroying the session.');