/**
  * action update
  *
  * @param User $user
  * @validate $user In2code\Femanager\Domain\Validator\ServersideValidator
  * @validate $user In2code\Femanager\Domain\Validator\CaptchaValidator
  * @return void
  */
 public function updateAction(\Gigabonus\Gbfemanager\Domain\Model\User $user = null)
 {
     if ($user !== NULL && $GLOBALS['TSFE']->fe_user->user['uid'] == $user->getUid()) {
         $telephonelastchanged = ObjectAccess::getProperty($user, 'txGbfemanagerTelephonelastchanged');
         $user->setTxGbfemanagerTelephonelastchanged(time());
         parent::updateAction($user);
     } else {
         // Versuch die uid im FireBug oder Ähnlichem zu manipulieren
         exit;
     }
 }
Ejemplo n.º 2
0
 /**
  * action update
  *
  * @param User $user
  * @validate $user In2code\Femanager\Domain\Validator\ServersideValidator
  * @validate $user In2code\Femanager\Domain\Validator\PasswordValidator
  * @validate $user In2code\Femanager\Domain\Validator\CaptchaValidator
  * @return void
  */
 public function updateAction(\Gigabonus\Gbfemanager\Domain\Model\User $user = NULL)
 {
     if ($user !== NULL && $GLOBALS['TSFE']->fe_user->user['uid'] == $user->getUid()) {
         parent::updateAction($user);
     } else {
         // Versuch die uid im FireBug oder Ähnlichem zu manipulieren
         throw new \Exception('');
         exit;
     }
     /*
             $dateOfBirth = \DateTime::createFromFormat('d.m.Y', $this->request->getArgument('user')['dateOfBirth']);
             $valid = \DateTime::getLastErrors();         
             
             if ($valid['warning_count'] == 0 && $valid['error_count'] == 0) {
        parent::updateAction($user);
             }
             else {
        $user->setDateOfBirth($dateOfBirth);
        $this->addFlashMessage('Date is false', '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
        $this->forward('edit');
             }
     * 
     */
 }