Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-14 10:06:25 +0300
committerGitHub <noreply@github.com>2019-08-14 10:06:25 +0300
commita614d6ea5766e487bda1d39a820b61307fef0334 (patch)
tree7d291f630f58193bd414e89fbf776e6d39e9d63f
parent3a6182090543dbe35ae87c6fb4cb76194f207243 (diff)
parent1c04575405ebac0ece44f02b16a7b164d71c09fe (diff)
Merge pull request #409 from nextcloud/fix/token-id
The token id is an int
-rw-r--r--lib/Controller/PushController.php2
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) {