Bug fix, the user lost the role when click on remember me
This commit is contained in:
parent
1c2d2a6d99
commit
bae332c794
|
@ -9,7 +9,7 @@ class Login {
|
||||||
if (isset($GLOBALS['users'])) {
|
if (isset($GLOBALS['users'])) {
|
||||||
$this->users = $GLOBALS['users'];
|
$this->users = $GLOBALS['users'];
|
||||||
} else {
|
} else {
|
||||||
$this->users = new users();
|
$this->users = new Users();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the Session
|
// Start the Session
|
||||||
|
@ -149,8 +149,8 @@ class Login {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate user and login
|
// Get user from database and login
|
||||||
$user = $this->users->getDb($username);
|
$user = $this->users->getUserDB($username);
|
||||||
$this->setLogin($username, $user['role']);
|
$this->setLogin($username, $user['role']);
|
||||||
Log::set(__METHOD__.LOG_SEP.'User authenticated via Remember Me.');
|
Log::set(__METHOD__.LOG_SEP.'User authenticated via Remember Me.');
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -16,7 +16,6 @@ class Users extends dbJSON {
|
||||||
'tokenAuthTTL'=>'2009-03-15 14:00',
|
'tokenAuthTTL'=>'2009-03-15 14:00',
|
||||||
'twitter'=>'',
|
'twitter'=>'',
|
||||||
'facebook'=>'',
|
'facebook'=>'',
|
||||||
'googlePlus'=>'',
|
|
||||||
'instagram'=>'',
|
'instagram'=>'',
|
||||||
'codepen'=>'',
|
'codepen'=>'',
|
||||||
'linkedin'=>'',
|
'linkedin'=>'',
|
||||||
|
|
Loading…
Reference in New Issue