X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPasswordReset.php;h=753923597b7abc0f490ff09be7f378d6da7544f4;hb=f29c93a23bc6ca74a42aad576471e52882711779;hp=a4f16bd7c97649cd6eb19d75b37f1ae28eaf2dbc;hpb=6bd1e23f4a281b05e6c171653a715c394aac36d6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index a4f16bd7c9..753923597b 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -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;