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'])) {
|
||||
$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;
|
||||
|
@ -16,7 +16,6 @@ class Users extends dbJSON {
|
||||
'tokenAuthTTL'=>'2009-03-15 14:00',
|
||||
'twitter'=>'',
|
||||
'facebook'=>'',
|
||||
'googlePlus'=>'',
|
||||
'instagram'=>'',
|
||||
'codepen'=>'',
|
||||
'linkedin'=>'',
|
||||
|
Loading…
Reference in New Issue
Block a user