/** * Initialize * * @param array $parameters * @param \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController $frontendController */ public function initialize(array $parameters, \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController $frontendController) { $frontendUserId = (int) GeneralUtility::_GP('frontendUserId'); $frontendController->fe_user->checkPid = 0; $frontendUser = $this->getDatabaseConnection()->exec_SELECTgetSingleRow('*', 'fe_users', 'uid =' . $frontendUserId); if (is_array($frontendUser)) { $frontendController->loginUser = 1; $frontendController->fe_user->createUserSession($frontendUser); $frontendController->fe_user->user = $GLOBALS['TSFE']->fe_user->fetchUserSession(); $frontendController->initUserGroups(); } }