/** * @param \TYPO3\Sso\Domain\Model\FrontendUser $frontendUser * * @throws EmptyUserException * @return void */ public function registerSession($frontendUser) { if (!$frontendUser) { throw new EmptyUserException('No user given that can be dropped into the session.', 1329749957); } $row = $this->db->exec_SELECTgetSingleRow('*', 'fe_users', 'uid = ' . $frontendUser->getUid()); $this->getFeUser()->createUserSession($row); $this->getFeUser()->setSessionCookie(); }
/** * @param FrontendUser $account * @param array $userdata * @return FrontendUser */ protected function updateAccount(FrontendUser $account, array $userdata) { if (isset($userdata['name'])) { $account->setName($userdata['name']); } if (isset($userdata['email'])) { $account->setEmail($userdata['email']); } return $account; }