original_string: public function confirmResetPassword()
      {
          $errorMessage = null;
  
          $login = Common::getRequestVar('login', '');
          $resetToken = Common::getRequestVar('resetToken', '');
  
          try {
              $this->passwordResetter->confirmNewPassword($login, $resetToken);
          } catch (Exception $ex) {
              Log::debug($ex);
  
              $errorMessage = $ex->getMessage();
          }
  
          if (is_null($errorMessage)) { // if success, show login w/ success message
              return $this->resetPasswordSuccess();
          } else {
              // show login page w/ error. this will keep the token in the URL
              return $this->login($errorMessage);
          }
      }
code: public function confirmResetPassword()
      {
          $errorMessage = null;
  
          $login = Common::getRequestVar('login', '');
          $resetToken = Common::getRequestVar('resetToken', '');
  
          try {
              $this->passwordResetter->confirmNewPassword($login, $resetToken);
          } catch (Exception $ex) {
              Log::debug($ex);
  
              $errorMessage = $ex->getMessage();
          }
  
          if (is_null($errorMessage)) { // if success, show login w/ success message
              return $this->resetPasswordSuccess();
          } else {
              // show login page w/ error. this will keep the token in the URL
              return $this->login($errorMessage);
          }
      }
code_tokens: public function confirmResetPassword ( ) { $ errorMessage = null ; $ login = Common :: getRequestVar ( 'login' , '' ) ; $ resetToken = Common :: getRequestVar ( 'resetToken' , '' ) ; try { $ this -> passwordResetter -> confirmNewPassword ( $ login , $ resetToken ) ; } catch ( Exception $ ex ) { Log :: debug ( $ ex ) ; $ errorMessage = $ ex -> getMessage ( ) ; } if ( is_null ( $ errorMessage ) ) { // if success, show login w/ success message return $ this -> resetPasswordSuccess ( ) ; } else { // show login page w/ error. this will keep the token in the URL return $ this -> login ( $ errorMessage ) ; } }
docstring: Password reset confirmation action. Finishes the password reset process.
  Users visit this action from a link supplied in an email.
docstring_tokens: Password reset confirmation action . Finishes the password reset process . Users visit this action from a link supplied in an email .