Bug fix, the user lost the role when click on remember me

This commit is contained in:
Diego Najar 2018-12-08 11:49:55 +01:00
parent 1c2d2a6d99
commit bae332c794
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -16,7 +16,6 @@ class Users extends dbJSON {
'tokenAuthTTL'=>'2009-03-15 14:00',
'twitter'=>'',
'facebook'=>'',
'googlePlus'=>'',
'instagram'=>'',
'codepen'=>'',
'linkedin'=>'',