Example #1
0
 /**
  * @param $error string
  */
 function resetLoginForm($error)
 {
     $this->getOutput()->addHTML(Xml::element('p', array('class' => 'error'), $error));
     $reset = new SpecialChangePassword();
     $reset->setContext($this->getContext());
     $reset->execute(null);
 }
 /**
  * Show the Special:ChangePassword form, with custom message
  * @param Message $msg
  */
 protected function resetLoginForm(Message $msg)
 {
     // Allow hooks to explain this password reset in more detail
     Hooks::run('LoginPasswordResetMessage', array(&$msg, $this->mUsername));
     $reset = new SpecialChangePassword();
     $derivative = new DerivativeContext($this->getContext());
     $derivative->setTitle($reset->getPageTitle());
     $reset->setContext($derivative);
     if (!$this->mTempPasswordUsed) {
         $reset->setOldPasswordMessage('oldpassword');
     }
     $reset->setChangeMessage($msg);
     $reset->execute(null);
 }
Example #3
0
 function resetLoginForm($error)
 {
     global $wgOut;
     $wgOut->addHTML(Xml::element('p', array('class' => 'error'), $error));
     $reset = new SpecialChangePassword();
     $reset->execute(null);
 }