Skip to content
Snippets Groups Projects
Unverified Commit e78f4cec authored by Daniel Kesselberg's avatar Daniel Kesselberg
Browse files

Don't cast tokenId to string

parent a687a657
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,7 @@ class AuthSettingsController extends Controller { ...@@ -261,7 +261,7 @@ class AuthSettingsController extends Controller {
* @throws \OC\Authentication\Exceptions\ExpiredTokenException * @throws \OC\Authentication\Exceptions\ExpiredTokenException
*/ */
private function findTokenByIdAndUser(int $id): IToken { private function findTokenByIdAndUser(int $id): IToken {
$token = $this->tokenProvider->getTokenById((string)$id); $token = $this->tokenProvider->getTokenById($id);
if ($token->getUID() !== $this->uid) { if ($token->getUID() !== $this->uid) {
throw new InvalidTokenException('This token does not belong to you!'); throw new InvalidTokenException('This token does not belong to you!');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment