Merge "Use {{int:}} on MediaWiki:Blockedtext and MediaWiki:Autoblockedtext"
[lhc/web/wiklou.git] / includes / specials / SpecialPasswordReset.php
index a4f16bd..7539235 100644 (file)
@@ -36,11 +36,6 @@ class SpecialPasswordReset extends FormSpecialPage {
        /** @var PasswordReset */
        private $passwordReset = null;
 
-       /**
-        * @var string[] Temporary storage for the passwords which have been sent out, keyed by username.
-        */
-       private $passwords = [];
-
        /**
         * @var Status
         */
@@ -110,6 +105,8 @@ class SpecialPasswordReset extends FormSpecialPage {
        public function alterForm( HTMLForm $form ) {
                $resetRoutes = $this->getConfig()->get( 'PasswordResetRoutes' );
 
+               $form->setSubmitDestructive();
+
                $form->addHiddenFields( $this->getRequest()->getValues( 'returnto', 'returntoquery' ) );
 
                $i = 0;