diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-14 10:06:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 10:06:25 +0300 |
commit | a614d6ea5766e487bda1d39a820b61307fef0334 (patch) | |
tree | 7d291f630f58193bd414e89fbf776e6d39e9d63f | |
parent | 3a6182090543dbe35ae87c6fb4cb76194f207243 (diff) | |
parent | 1c04575405ebac0ece44f02b16a7b164d71c09fe (diff) |
Merge pull request #409 from nextcloud/fix/token-id
The token id is an int
-rw-r--r-- | lib/Controller/PushController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PushController.php b/lib/Controller/PushController.php index ce434ac..eb2c58a 100644 --- a/lib/Controller/PushController.php +++ b/lib/Controller/PushController.php @@ -154,7 +154,7 @@ class PushController extends OCSController { return new DataResponse([], Http::STATUS_UNAUTHORIZED); } - $tokenId = $this->session->get('token-id'); + $tokenId = (int)$this->session->get('token-id'); try { $token = $this->tokenProvider->getTokenById($tokenId); } catch (InvalidTokenException $e) { |