protected function createSetPasswordViewModel()
    {
        $organization = $this->getOrganizationEntity();
        $result       = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index'));
        $model        = new ViewModel(
            array(
                'organization' => $organization->getOrganizationName()->getName()
            )
        );

        if (!$result->getVariable('valid', false)) {
            $model->setVariable('form', $result->getVariable('form'));
        }

        return $model;
    }
protected function createSetPasswordViewModel()
    {
        $organization = $this->getOrganizationEntity();
        $result       = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index'));
        $model        = new ViewModel(
            array(
                'organization' => $organization->getOrganizationName()->getName()
            )
        );

        if (!$result->getVariable('valid', false)) {
            $model->setVariable('form', $result->getVariable('form'));
        }

        return $model;
    }
protected function createSetPasswordViewModel ( ) { $ organization = $ this -> getOrganizationEntity ( ) ; $ result = $ this -> forward ( ) -> dispatch ( 'Auth\Controller\Password' , array ( 'action' => 'index' ) ) ; $ model = new ViewModel ( array ( 'organization' => $ organization -> getOrganizationName ( ) -> getName ( ) ) ) ; if ( ! $ result -> getVariable ( 'valid' , false ) ) { $ model -> setVariable ( 'form' , $ result -> getVariable ( 'form' ) ) ; } return $ model ; }
Creates a view model for success view script with set password form.

@return ViewModel
Creates a view model for success view script with set password form .