Ejemplo n.º 1
0
 /**
  * action confirm
  *
  * @throws \TYPO3\CMS\Extbase\Mvc\Exception
  * @return void
  */
 public function confirmAction()
 {
     $this->checkAuth(TRUE);
     if ($this->subscriber === NULL) {
         throw new MvcException('No authenticated subscriber given.');
     }
     if ($this->subscriber->_getProperty('hidden') === TRUE) {
         $this->subscriber->_setProperty('hidden', FALSE);
         $this->addFlashMessageByKey('confirmed', FlashMessage::NOTICE);
         $this->subscriberRepository->update($this->subscriber);
         $this->persistEntities();
     }
     $this->redirect('list');
 }