summaryrefslogtreecommitdiffstats
path: root/settings/Controller
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-01-30 14:57:48 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-01-30 19:10:59 +0100
commite78f4cec1561034aa3f3e8de0eaa9f157d565801 (patch)
treeacb1132279327712468ab5fb77c1b1f0f3990ff7 /settings/Controller
parenta687a657e82a3a9e4a0a14357f2d07a9669bd085 (diff)
downloadnextcloud-server-e78f4cec1561034aa3f3e8de0eaa9f157d565801.tar.gz
nextcloud-server-e78f4cec1561034aa3f3e8de0eaa9f157d565801.zip
Don't cast tokenId to string
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'settings/Controller')
-rw-r--r--settings/Controller/AuthSettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/AuthSettingsController.php b/settings/Controller/AuthSettingsController.php
index 26203c8abab..5f834b30134 100644
--- a/settings/Controller/AuthSettingsController.php
+++ b/settings/Controller/AuthSettingsController.php
@@ -261,7 +261,7 @@ class AuthSettingsController extends Controller {
* @throws \OC\Authentication\Exceptions\ExpiredTokenException
*/
private function findTokenByIdAndUser(int $id): IToken {
- $token = $this->tokenProvider->getTokenById((string)$id);
+ $token = $this->tokenProvider->getTokenById($id);
if ($token->getUID() !== $this->uid) {
throw new InvalidTokenException('This token does not belong to you!');
}