summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-11-15 12:50:33 -0500
committerFrederic Guillot <fred@kanboard.net>2015-11-15 12:50:33 -0500
commita675271ad71b7713d1b33bdba3c51b2b04813229 (patch)
treee54d8a95e16ca521193b9fd5a5eb071aa2910823 /app/Api
parent2fc402f6733573627ad25394d109b9f848ef04f6 (diff)
Rewrite of session management
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/Auth.php2
-rw-r--r--app/Api/Me.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/Auth.php b/app/Api/Auth.php
index b3627e4b..a084d6eb 100644
--- a/app/Api/Auth.php
+++ b/app/Api/Auth.php
@@ -28,7 +28,7 @@ class Auth extends Base
if ($username !== 'jsonrpc' && ! $this->authentication->hasCaptcha($username) && $this->authentication->authenticate($username, $password)) {
$this->checkProcedurePermission(true, $method);
- $this->userSession->refresh($this->user->getByUsername($username));
+ $this->userSession->initialize($this->user->getByUsername($username));
} elseif ($username === 'jsonrpc' && $password === $this->config->get('api_token')) {
$this->checkProcedurePermission(false, $method);
} else {
diff --git a/app/Api/Me.php b/app/Api/Me.php
index 2c332a8c..2c4161fd 100644
--- a/app/Api/Me.php
+++ b/app/Api/Me.php
@@ -14,7 +14,7 @@ class Me extends Base
{
public function getMe()
{
- return $this->session['user'];
+ return $this->sessionStorage->user;
}
public function getMyDashboard()