summaryrefslogtreecommitdiff
path: root/app/Controller/UserApiAccessController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-05-12 17:35:22 -0400
committerFrederic Guillot <fred@kanboard.net>2017-05-12 17:35:22 -0400
commiteab2d872a844a7b7312d7aaa9e52ddc43fab38aa (patch)
treea3efd4d449536cad4bff60467262a3f3ad5c3fed /app/Controller/UserApiAccessController.php
parent873cd5aa94219849fe86a56b315f363a4bd90169 (diff)
Avoid PHP notice when regenerating API token for a user
Diffstat (limited to 'app/Controller/UserApiAccessController.php')
-rw-r--r--app/Controller/UserApiAccessController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/UserApiAccessController.php b/app/Controller/UserApiAccessController.php
index 0f1c891e..f9628ae6 100644
--- a/app/Controller/UserApiAccessController.php
+++ b/app/Controller/UserApiAccessController.php
@@ -32,7 +32,7 @@ class UserApiAccessController extends BaseController
'api_access_token' => Token::getToken(),
));
- $this->renderResponse();
+ $this->renderResponse($user);
}
public function remove()
@@ -45,10 +45,10 @@ class UserApiAccessController extends BaseController
'api_access_token' => null,
));
- $this->renderResponse();
+ $this->renderResponse($user);
}
- protected function renderResponse()
+ protected function renderResponse(array $user)
{
if ($this->request->isAjax()) {
$this->show();