Allow users to override the timezone and the language
This commit is contained in:
@@ -33,7 +33,7 @@ class Database extends Base
|
||||
$user = $this->db->table(User::TABLE)->eq('username', $username)->eq('is_ldap_user', 0)->findOne();
|
||||
|
||||
if ($user && password_verify($password, $user['password'])) {
|
||||
$this->user->updateSession($user);
|
||||
$this->userSession->refresh($user);
|
||||
$this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id']));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ class GitHub extends Base
|
||||
$user = $this->user->getByGitHubId($github_id);
|
||||
|
||||
if ($user) {
|
||||
$this->user->updateSession($user);
|
||||
$this->userSession->refresh($user);
|
||||
$this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id']));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class Google extends Base
|
||||
$user = $this->user->getByGoogleId($google_id);
|
||||
|
||||
if ($user) {
|
||||
$this->user->updateSession($user);
|
||||
$this->userSession->refresh($user);
|
||||
$this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id']));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class Ldap extends Base
|
||||
}
|
||||
|
||||
// We open the session
|
||||
$this->user->updateSession($user);
|
||||
$this->userSession->refresh($user);
|
||||
$this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id']));
|
||||
|
||||
return true;
|
||||
|
||||
@@ -101,7 +101,7 @@ class RememberMe extends Base
|
||||
);
|
||||
|
||||
// Create the session
|
||||
$this->user->updateSession($this->user->getById($record['user_id']));
|
||||
$this->userSession->refresh($this->user->getById($record['user_id']));
|
||||
|
||||
$this->container['dispatcher']->dispatch(
|
||||
'auth.success',
|
||||
|
||||
@@ -37,7 +37,7 @@ class ReverseProxy extends Base
|
||||
$user = $this->user->getByUsername($login);
|
||||
}
|
||||
|
||||
$this->user->updateSession($user);
|
||||
$this->userSession->refresh($user);
|
||||
$this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id']));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user