Skip to content

Commit 0909588

Browse files
Merge pull request #489 from nextcloud/backport/409/stable16
[stable16] The token id is an int
2 parents 2b7eea3 + e8ab4aa commit 0909588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Controller/PushController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function removeDevice(): DataResponse {
154154
return new DataResponse([], Http::STATUS_UNAUTHORIZED);
155155
}
156156

157-
$tokenId = $this->session->get('token-id');
157+
$tokenId = (int)$this->session->get('token-id');
158158
try {
159159
$token = $this->tokenProvider->getTokenById($tokenId);
160160
} catch (InvalidTokenException $e) {

0 commit comments

Comments
 (0)