summaryrefslogtreecommitdiff
path: root/app/Api
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-03 15:43:36 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-03 15:43:36 -0500
commitb8f7532e5c7e8b8be3ab199fca3dadd0d22be4cd (patch)
tree435eb1e72df595875547547f939493a6a6b7c512 /app/Api
parent23d862aef8891130bc7eaeaa25513a9895b44c95 (diff)
Add personal API access token
Diffstat (limited to 'app/Api')
-rw-r--r--app/Api/Middleware/AuthenticationMiddleware.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Api/Middleware/AuthenticationMiddleware.php b/app/Api/Middleware/AuthenticationMiddleware.php
index 8e309593..c4fa874a 100644
--- a/app/Api/Middleware/AuthenticationMiddleware.php
+++ b/app/Api/Middleware/AuthenticationMiddleware.php
@@ -28,6 +28,7 @@ class AuthenticationMiddleware extends Base implements MiddlewareInterface
public function execute($username, $password, $procedureName)
{
$this->dispatcher->dispatch('app.bootstrap');
+ $this->sessionStorage->scope = 'API';
if ($this->isUserAuthenticated($username, $password)) {
$this->userSession->initialize($this->userModel->getByUsername($username));