use GuzzleHttp\Psr7\Request;
use Laminas\Diactoros\Response\RedirectResponse;
use wcf\data\user\User;
+use wcf\form\AccountManagementForm;
use wcf\form\RegisterForm;
use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
WCF::getSession()->register('__oauthUser', $oauthUser);
return new RedirectResponse(
- LinkHandler::getInstance()->getLink('AccountManagement') . '#3rdParty'
+ LinkHandler::getInstance()->getControllerLink(
+ AccountManagementForm::class,
+ [],
+ '#3rdParty'
+ )
);
} else {
// This account does not belong to anyone and we are not logged in.
use Laminas\Diactoros\Response\RedirectResponse;
use Psr\Http\Client\ClientExceptionInterface;
use wcf\data\user\User;
+use wcf\form\AccountManagementForm;
use wcf\form\RegisterForm;
use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
WCF::getSession()->register('__oauthUser', $oauthUser);
return new RedirectResponse(
- LinkHandler::getInstance()->getLink('AccountManagement') . '#3rdParty'
+ LinkHandler::getInstance()->getControllerLink(
+ AccountManagementForm::class,
+ [],
+ '#3rdParty'
+ )
);
} else {
// This account does not belong to anyone and we are not logged in.
use GuzzleHttp\Psr7\Request;
use Laminas\Diactoros\Response\RedirectResponse;
use wcf\data\user\User;
+use wcf\form\AccountManagementForm;
use wcf\form\RegisterForm;
use wcf\system\event\EventHandler;
use wcf\system\exception\NamedUserException;
WCF::getSession()->register('__oauthUser', $oauthUser);
return new RedirectResponse(
- LinkHandler::getInstance()->getLink('AccountManagement') . '#3rdParty'
+ LinkHandler::getInstance()->getControllerLink(
+ AccountManagementForm::class,
+ [],
+ '#3rdParty'
+ )
);
} else {
// This account does not belong to anyone and we are not logged in.