diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-01-30 16:57:48 +0300 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-01-30 21:10:59 +0300 |
commit | e78f4cec1561034aa3f3e8de0eaa9f157d565801 (patch) | |
tree | acb1132279327712468ab5fb77c1b1f0f3990ff7 /settings/Controller | |
parent | a687a657e82a3a9e4a0a14357f2d07a9669bd085 (diff) |
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.php | 2 |
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!'); } |