From 3b9db141216e3e5ec72f964d8bd7d23f0f713e6e Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Tue, 23 Apr 2024 14:13:57 +0200 Subject: [PATCH] Remove `getInternalUser()` from `GithubAuthAction` --- .../install/files/lib/action/GithubAuthAction.class.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php index 9b0e77d429..dca386951e 100644 --- a/wcfsetup/install/files/lib/action/GithubAuthAction.class.php +++ b/wcfsetup/install/files/lib/action/GithubAuthAction.class.php @@ -5,7 +5,6 @@ namespace wcf\action; use GuzzleHttp\Psr7\Request; use Psr\Http\Client\ClientExceptionInterface; use Psr\Http\Message\ResponseInterface; -use wcf\data\user\User; use wcf\system\request\LinkHandler; use wcf\system\user\authentication\oauth\User as OauthUser; use wcf\util\JSON; @@ -79,12 +78,6 @@ final class GithubAuthAction extends AbstractOauth2AuthAction return new OauthUser($parsed); } - #[\Override] - protected function getInternalUser(OauthUser $oauthUser): User - { - return User::getUserByAuthData('github:' . $oauthUser->getId()); - } - #[\Override] protected function getProviderName(): string { -- 2.20.1