summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-04 22:34:59 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-04 22:34:59 -0500
commit99d27e0ce4f48454808d2325cb407b5b35cf5e88 (patch)
tree3c518cf08499890d46b9d2f65724d46617e1fc67 /app/Auth
parentd1d04d6feeebeba2aea5333d7a4229fcec799f75 (diff)
Allow users to override the timezone and the language
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/Database.php2
-rw-r--r--app/Auth/GitHub.php2
-rw-r--r--app/Auth/Google.php2
-rw-r--r--app/Auth/Ldap.php2
-rw-r--r--app/Auth/RememberMe.php2
-rw-r--r--app/Auth/ReverseProxy.php2
6 files changed, 6 insertions, 6 deletions
diff --git a/app/Auth/Database.php b/app/Auth/Database.php
index bdb2aeb6..2804b9a8 100644
--- a/app/Auth/Database.php
+++ b/app/Auth/Database.php
@@ -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;
}
diff --git a/app/Auth/GitHub.php b/app/Auth/GitHub.php
index a785c494..0e335fb4 100644
--- a/app/Auth/GitHub.php
+++ b/app/Auth/GitHub.php
@@ -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;
}
diff --git a/app/Auth/Google.php b/app/Auth/Google.php
index f779cfe5..e7abae08 100644
--- a/app/Auth/Google.php
+++ b/app/Auth/Google.php
@@ -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;
}
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php
index b3c998f9..b3440614 100644
--- a/app/Auth/Ldap.php
+++ b/app/Auth/Ldap.php
@@ -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;
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php
index fc2ea78d..4736442e 100644
--- a/app/Auth/RememberMe.php
+++ b/app/Auth/RememberMe.php
@@ -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',
diff --git a/app/Auth/ReverseProxy.php b/app/Auth/ReverseProxy.php
index 9d766a5b..b84550cf 100644
--- a/app/Auth/ReverseProxy.php
+++ b/app/Auth/ReverseProxy.php
@@ -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;