* @ingroup SpecialPage
*/
-use MediaWiki\Auth\AuthManager;
+use MediaWiki\MediaWikiServices;
/**
* Special page for requesting a password reset email.
private function getPasswordReset() {
if ( $this->passwordReset === null ) {
- $this->passwordReset = new PasswordReset( $this->getConfig(), AuthManager::singleton() );
+ $this->passwordReset = MediaWikiServices::getInstance()->getPasswordReset();
}
return $this->passwordReset;
}
parent::checkExecutePermissions( $user );
}
+ /**
+ * @param string $par
+ */
+ public function execute( $par ) {
+ $out = $this->getOutput();
+ $out->disallowUserJs();
+ parent::execute( $par );
+ }
+
protected function getFormFields() {
$resetRoutes = $this->getConfig()->get( 'PasswordResetRoutes' );
$a = [];