public function indexAction()
    {
        if ($this->util->getMaintenanceLock()->isLocked()) {
            $this->addSnippet($this->maintenanceModeSnippets);
            return;
        }

        // Make sure to return to the forward screen
        $this->currentUser->setSurveyReturn();

        $request = $this->getRequest();
        $tracker = $this->loader->getTracker();
        $form    = $tracker->getAskTokenForm(array(
            'displayOrder' => array('element', 'description', 'errors'),
            'labelWidthFactor' => 0.8
            ));

        if ($request->isPost() && $form->isValid($request->getParams())) {
            $this->_forward('forward');
            return;
        }

        $form->populate($request->getParams());
        $this->displayTokenForm($form);
    }
public function indexAction()
    {
        if ($this->util->getMaintenanceLock()->isLocked()) {
            $this->addSnippet($this->maintenanceModeSnippets);
            return;
        }

        // Make sure to return to the forward screen
        $this->currentUser->setSurveyReturn();

        $request = $this->getRequest();
        $tracker = $this->loader->getTracker();
        $form    = $tracker->getAskTokenForm(array(
            'displayOrder' => array('element', 'description', 'errors'),
            'labelWidthFactor' => 0.8
            ));

        if ($request->isPost() && $form->isValid($request->getParams())) {
            $this->_forward('forward');
            return;
        }

        $form->populate($request->getParams());
        $this->displayTokenForm($form);
    }
public function indexAction ( ) { if ( $ this -> util -> getMaintenanceLock ( ) -> isLocked ( ) ) { $ this -> addSnippet ( $ this -> maintenanceModeSnippets ) ; return ; } // Make sure to return to the forward screen $ this -> currentUser -> setSurveyReturn ( ) ; $ request = $ this -> getRequest ( ) ; $ tracker = $ this -> loader -> getTracker ( ) ; $ form = $ tracker -> getAskTokenForm ( array ( 'displayOrder' => array ( 'element' , 'description' , 'errors' ) , 'labelWidthFactor' => 0.8 ) ) ; if ( $ request -> isPost ( ) && $ form -> isValid ( $ request -> getParams ( ) ) ) { $ this -> _forward ( 'forward' ) ; return ; } $ form -> populate ( $ request -> getParams ( ) ) ; $ this -> displayTokenForm ( $ form ) ; }
Ask the user for a token

@return void
Ask the user for a token