+ parent::execute( $par );
+ }
+
+ public function alterForm( HTMLForm $form ) {
+ $form->setTokenSalt( 'logoutToken' );
+ $form->addHeaderText( $this->msg( 'userlogout-continue' ) );
+
+ $form->addHiddenFields( $this->getRequest()->getValues( 'returnto', 'returntoquery' ) );
+ }
+
+ /**
+ * Process the form. At this point we know that the user passes all the criteria in
+ * userCanExecute(), and if the data array contains 'Username', etc, then Username
+ * resets are allowed.
+ * @param array $data
+ * @throws MWException
+ * @throws ThrottledError|PermissionsError
+ * @return Status
+ */
+ public function onSubmit( array $data ) {