diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-13 16:07:43 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-13 16:07:43 +0300 |
commit | 1c04575405ebac0ece44f02b16a7b164d71c09fe (patch) | |
tree | 4d52418b817ec94dec6a35bde36ac4eb860766b8 /lib | |
parent | 133e08bf94ca41f28e7b0c354dfef6e05a6bed25 (diff) |
The token id is an int
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-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) { |