コード例 #1
0
 /**
  *
  * @return void
  */
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->session->clear();
     $this->addFlashMessage('Successfully logged out.', '', \TYPO3\Flow\Error\Message::SEVERITY_OK, array(), 'flash.logout');
     $this->redirect('index', 'Login');
 }
コード例 #2
0
ファイル: SetupController.php プロジェクト: kdambekalns/setup
 /**
  * @param integer $step
  * @return void
  * @Flow\SkipCsrfProtection
  */
 public function indexAction($step = 0)
 {
     $this->currentStepIndex = $step;
     $this->checkRequestedStepIndex();
     $currentStep = $this->instantiateCurrentStep();
     $controller = $this;
     $callback = function (\TYPO3\Form\Core\Model\FinisherContext $finisherContext) use($controller, $currentStep) {
         $controller->postProcessStep($finisherContext->getFormValues(), $currentStep);
     };
     $formDefinition = $currentStep->getFormDefinition($callback);
     if ($this->currentStepIndex > 0) {
         $formDefinition->setRenderingOption('previousStepUri', $this->uriBuilder->uriFor('index', array('step' => $this->currentStepIndex - 1)));
     }
     if ($currentStep->isOptional()) {
         $formDefinition->setRenderingOption('nextStepUri', $this->uriBuilder->uriFor('index', array('step' => $this->currentStepIndex + 1)));
     }
     $totalAmountOfSteps = count($this->settings['steps']);
     if ($this->currentStepIndex === $totalAmountOfSteps - 1) {
         $formDefinition->setRenderingOption('finalStep', TRUE);
         $this->authenticationManager->logout();
     }
     $response = new \TYPO3\Flow\Http\Response($this->response);
     $form = $formDefinition->bind($this->request, $response);
     try {
         $renderedForm = $form->render();
     } catch (\TYPO3\Setup\Exception $exception) {
         $this->addFlashMessage($exception->getMessage(), 'Exception while executing setup step', \TYPO3\Flow\Error\Message::SEVERITY_ERROR);
         $this->redirect('index', NULL, NULL, array('step' => $this->currentStepIndex));
     }
     $this->view->assignMultiple(array('form' => $renderedForm, 'totalAmountOfSteps' => $totalAmountOfSteps, 'currentStepNumber' => $this->currentStepIndex + 1));
 }
コード例 #3
0
 /**
  * @return void
  */
 public function logoutAction()
 {
     try {
         $this->authenticationManager->logout();
         $this->redirectToUri('/');
         return;
     } catch (\Exception $e) {
         return $e->getMessage();
     }
 }
コード例 #4
0
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->flashMessageContainer->addMessage(new \TYPO3\Flow\Error\Error('Erfolgreich abgemeldet.'));
     $this->redirect('index', 'Dashboard');
 }
 /**
  * Logs all active tokens out. Override this, if you want to
  * have some custom action here. You can always call the parent
  * method to do the actual logout.
  *
  * @return void
  */
 public function logoutAction()
 {
     $this->authenticationManager->logout();
 }
コード例 #6
0
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->flashMessageContainer->addMessage(new \TYPO3\Flow\Error\Error('Successfully logged out.'));
     $this->redirect('index', 'Login');
 }
コード例 #7
0
ファイル: LoginController.php プロジェクト: yashodhank/panel
 /**
  * Logout the user and redirect back to the login form.
  *
  * @return void
  */
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->addFlashMessage($this->translate('status_logout_success', 'Login'));
     $this->redirect('index', 'Login');
 }
コード例 #8
0
ファイル: LoginController.php プロジェクト: kdambekalns/setup
 /**
  * Logout all active authentication tokens.
  *
  * @return void
  */
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->addFlashMessage('Successfully logged out.', 'Logged out');
     $this->redirect('login');
 }
コード例 #9
0
 public function logoutAction()
 {
     $this->authenticationManager->logout();
     $this->flashMessageContainer->addMessage(new Message($this->translator->translateById('login.messages.logout.success', array(), NULL, NULL, 'Main', 'Incvisio.LostFound')));
     $this->redirect('index', 'Standard');
 }