From: Alexander Ebert
Date: Wed, 25 Nov 2020 14:24:23 +0000 (+0100)
Subject: Removed the obsolete 2fa abort form
X-Git-Tag: 5.4.0_Alpha_1~555^2~26
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12a5d0549c7b87bed97945cd934189d495408337;p=GitHub%2FWoltLab%2FWCF.git
Removed the obsolete 2fa abort form
---
diff --git a/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationAbortForm.class.php b/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationAbortForm.class.php
deleted file mode 100644
index a6a4ae3956..0000000000
--- a/wcfsetup/install/files/lib/acp/form/MultifactorAuthenticationAbortForm.class.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
- * @package WoltLabSuite\Core\Acp\Form
- * @since 5.4
- */
-class MultifactorAuthenticationAbortForm extends \wcf\form\MultifactorAuthenticationAbortForm {
- /**
- * Returns to the landing page otherwise.
- */
- protected function performRedirect() {
- HeaderUtil::redirect(
- LinkHandler::getInstance()->getLink('Login')
- );
- exit;
- }
-}
diff --git a/wcfsetup/install/files/lib/form/MultifactorAuthenticationAbortForm.class.php b/wcfsetup/install/files/lib/form/MultifactorAuthenticationAbortForm.class.php
deleted file mode 100644
index c018954507..0000000000
--- a/wcfsetup/install/files/lib/form/MultifactorAuthenticationAbortForm.class.php
+++ /dev/null
@@ -1,85 +0,0 @@
-
- * @package WoltLabSuite\Core\Form
- * @since 5.4
- */
-class MultifactorAuthenticationAbortForm extends AbstractForm {
- const AVAILABLE_DURING_OFFLINE_MODE = true;
-
- /**
- * @inheritDoc
- */
- public $useTemplate = false;
-
- /**
- * @inheritDoc
- */
- public function readParameters() {
- parent::readParameters();
-
- if (WCF::getUser()->userID) {
- throw new PermissionDeniedException();
- }
-
- $user = WCF::getSession()->getPendingUserChange();
- if (!$user) {
- $this->performRedirect();
- }
- }
-
- /**
- * @inheritDoc
- */
- public function save() {
- parent::save();
-
- WCF::getSession()->clearPendingUserChange();
-
- $this->saved();
- }
-
- /**
- * @inheritDoc
- */
- public function saved() {
- parent::saved();
-
- $this->performRedirect();
- }
-
- /**
- * Returns to the landing page otherwise.
- */
- protected function performRedirect() {
- HeaderUtil::delayedRedirect(
- LinkHandler::getInstance()->getLink(),
- WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.authentication.logout.success')
- );
- exit;
- }
-
- /**
- * @inheritDoc
- */
- public function show() {
- parent::show();
-
- // It is not expected to reach this place, because the form should
- // never be accessed via a direct link.
- // If we reach it nonetheless we simply redirect back to the authentication
- // form which contains the proper button to perform the submission.
- HeaderUtil::redirect(LinkHandler::getInstance()->getLink('MultifactorAuthentication'));
- exit;
- }
-}
diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml
index 13c6e1238d..6c0440346c 100644
--- a/wcfsetup/install/lang/de.xml
+++ b/wcfsetup/install/lang/de.xml
@@ -4902,8 +4902,6 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email}
- username}!]]>
-
-
- {if LANGUAGE_USE_INFORMAL_VARIANT}Generiere Einmalcodes mit einer App auf deinem Smartphone.{else}Generieren Sie Einmalcodes mit einer App auf Ihrem Smartphone.{/if}
]]>
- {if LANGUAGE_USE_INFORMAL_VARIANT}Du erhältst bei jedem Login einen Einmalcode an deine E-Mail-Adresse.{else}Sie erhalten bei jedem Login einen Einmalcode an Ihre E-Mail-Adresse.{/if}]]>
diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml
index b545a89de6..4baf049c1b 100644
--- a/wcfsetup/install/lang/en.xml
+++ b/wcfsetup/install/lang/en.xml
@@ -4899,8 +4899,6 @@ Open the link below to access the user profile:
- username}!]]>
-
-
- Generate one time codes with an app on your smartphone.]]>
- You will receive a one time code via email after logging in.]]>