From bae332c794bdf48d22dac314dbb5aaabdcc5506b Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 8 Dec 2018 11:49:55 +0100 Subject: [PATCH] Bug fix, the user lost the role when click on remember me --- bl-kernel/login.class.php | 6 +++--- bl-kernel/users.class.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bl-kernel/login.class.php b/bl-kernel/login.class.php index 864200c3..23138566 100644 --- a/bl-kernel/login.class.php +++ b/bl-kernel/login.class.php @@ -9,7 +9,7 @@ class Login { if (isset($GLOBALS['users'])) { $this->users = $GLOBALS['users']; } else { - $this->users = new users(); + $this->users = new Users(); } // Start the Session @@ -149,8 +149,8 @@ class Login { return false; } - // Validate user and login - $user = $this->users->getDb($username); + // Get user from database and login + $user = $this->users->getUserDB($username); $this->setLogin($username, $user['role']); Log::set(__METHOD__.LOG_SEP.'User authenticated via Remember Me.'); return true; diff --git a/bl-kernel/users.class.php b/bl-kernel/users.class.php index be8db936..d2c0656a 100644 --- a/bl-kernel/users.class.php +++ b/bl-kernel/users.class.php @@ -16,7 +16,6 @@ class Users extends dbJSON { 'tokenAuthTTL'=>'2009-03-15 14:00', 'twitter'=>'', 'facebook'=>'', - 'googlePlus'=>'', 'instagram'=>'', 'codepen'=>'', 'linkedin'=>'',