diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-13 16:07:43 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-11-24 20:47:27 +0300 |
commit | e8ab4aa634bfd7e0e15cd7dbec0277afd7c4f816 (patch) | |
tree | c81a4a8c758ffe9dcb024e4f6dbd4f4b721802c1 /lib/Controller/PushController.php | |
parent | 2b7eea3c403feaf1a602f18da46498b81b9b75aa (diff) |
The token id is an int
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/Controller/PushController.php')
-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) { |