} else {
// This account does not belong to anyone and we are not logged in.
// Thus we want to connect this account to a newly registered user.
- return $this->performeRegister($oauthUser);
+ return $this->redirectToRegistration($oauthUser);
}
}
}
);
}
- protected function performeRegister(OauthUser $oauthUser): ResponseInterface
+ protected function redirectToRegistration(OauthUser $oauthUser): ResponseInterface
{
WCF::getSession()->register('__oauthUser', $oauthUser);
WCF::getSession()->register('__username', $oauthUser->getUsername());
}
#[\Override]
- protected function performeRegister(OauthUser $oauthUser): ResponseInterface
+ protected function redirectToRegistration(OauthUser $oauthUser): ResponseInterface
{
try {
$request = new Request('GET', 'https://api.github.com/user/emails', [
} catch (ClientExceptionInterface $e) {
}
- return parent::performeRegister($oauthUser);
+ return parent::redirectToRegistration($oauthUser);
}
}