original_string: protected function displayResetForm(\Gems_Form_AutoLoadFormAbstract $form, $errors)
      {
          if ($form instanceof \Gems_User_Validate_GetUserInterface) {
              $user = $form->getUser();
          }
  
          if ($form instanceof \Gems_User_Form_ResetRequestForm) {
              $this->html->h3($this->_('Request password reset'));
  
              $p = $this->html->pInfo();
              if ($form->getOrganizationIsVisible()) {
                  $p->append($this->_('Please enter your organization and your username or e-mail address. '));
              } else {
                  $p->append($this->_('Please enter your username or e-mail address. '));
              }
              $this->html->p($this->_('We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice.'));
  
          } elseif ($form instanceof \Gems_User_Form_ChangePasswordForm) {
  
              $this->setCurrentOrganizationTo($user);
              if ($user->hasPassword()) {
                  $this->html->h3($this->_('Execute password reset'));
                  $p = $this->html->pInfo($this->_('We received your password reset request.'));
              } else {
                  // New user
                  $this->html->h3(sprintf($this->_('Welcome to %s'), $this->project->getName()));
                  $p = $this->html->pInfo($this->_('Welcome to this website.'));
              }
              $p->append(' ');
              $p->append($this->_('Please enter your password of choice twice.'));
          }
  
          if ($errors) {
              $this->addMessage($errors);
          }
  
          if (isset($user)) {
              $this->setCurrentOrganizationTo($user);
          }
  
          $formContainer = \MUtil_Html::create('div', array('class' => 'resetPassword'), $form);
          $this->html->append($formContainer);
      }
code: protected function displayResetForm(\Gems_Form_AutoLoadFormAbstract $form, $errors)
      {
          if ($form instanceof \Gems_User_Validate_GetUserInterface) {
              $user = $form->getUser();
          }
  
          if ($form instanceof \Gems_User_Form_ResetRequestForm) {
              $this->html->h3($this->_('Request password reset'));
  
              $p = $this->html->pInfo();
              if ($form->getOrganizationIsVisible()) {
                  $p->append($this->_('Please enter your organization and your username or e-mail address. '));
              } else {
                  $p->append($this->_('Please enter your username or e-mail address. '));
              }
              $this->html->p($this->_('We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice.'));
  
          } elseif ($form instanceof \Gems_User_Form_ChangePasswordForm) {
  
              $this->setCurrentOrganizationTo($user);
              if ($user->hasPassword()) {
                  $this->html->h3($this->_('Execute password reset'));
                  $p = $this->html->pInfo($this->_('We received your password reset request.'));
              } else {
                  // New user
                  $this->html->h3(sprintf($this->_('Welcome to %s'), $this->project->getName()));
                  $p = $this->html->pInfo($this->_('Welcome to this website.'));
              }
              $p->append(' ');
              $p->append($this->_('Please enter your password of choice twice.'));
          }
  
          if ($errors) {
              $this->addMessage($errors);
          }
  
          if (isset($user)) {
              $this->setCurrentOrganizationTo($user);
          }
  
          $formContainer = \MUtil_Html::create('div', array('class' => 'resetPassword'), $form);
          $this->html->append($formContainer);
      }
code_tokens: protected function displayResetForm ( \ Gems_Form_AutoLoadFormAbstract $ form , $ errors ) { if ( $ form instanceof \ Gems_User_Validate_GetUserInterface ) { $ user = $ form -> getUser ( ) ; } if ( $ form instanceof \ Gems_User_Form_ResetRequestForm ) { $ this -> html -> h3 ( $ this -> _ ( 'Request password reset' ) ) ; $ p = $ this -> html -> pInfo ( ) ; if ( $ form -> getOrganizationIsVisible ( ) ) { $ p -> append ( $ this -> _ ( 'Please enter your organization and your username or e-mail address. ' ) ) ; } else { $ p -> append ( $ this -> _ ( 'Please enter your username or e-mail address. ' ) ) ; } $ this -> html -> p ( $ this -> _ ( 'We will then send you an e-mail with a link. The link will bring you to a page where you can set a new password of your choice.' ) ) ; } elseif ( $ form instanceof \ Gems_User_Form_ChangePasswordForm ) { $ this -> setCurrentOrganizationTo ( $ user ) ; if ( $ user -> hasPassword ( ) ) { $ this -> html -> h3 ( $ this -> _ ( 'Execute password reset' ) ) ; $ p = $ this -> html -> pInfo ( $ this -> _ ( 'We received your password reset request.' ) ) ; } else { // New user $ this -> html -> h3 ( sprintf ( $ this -> _ ( 'Welcome to %s' ) , $ this -> project -> getName ( ) ) ) ; $ p = $ this -> html -> pInfo ( $ this -> _ ( 'Welcome to this website.' ) ) ; } $ p -> append ( ' ' ) ; $ p -> append ( $ this -> _ ( 'Please enter your password of choice twice.' ) ) ; } if ( $ errors ) { $ this -> addMessage ( $ errors ) ; } if ( isset ( $ user ) ) { $ this -> setCurrentOrganizationTo ( $ user ) ; } $ formContainer = \ MUtil_Html :: create ( 'div' , array ( 'class' => 'resetPassword' ) , $ form ) ; $ this -> html -> append ( $ formContainer ) ; }
docstring: Function for overruling the display of the reset form.
  
  @param \Gems_Form_AutoLoadFormAbstract $form Rset password or reset request form
  @param mixed $errors
docstring_tokens: Function for overruling the display of the reset form .