Don't cast tokenId to string
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
a687a657e8
commit
e78f4cec15
|
@ -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!');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue