Пример #1
0
 /**
  * @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();
 }
Пример #2
0
 /**
  * @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;
 }