From: Tim Düsterhus Date: Mon, 7 Dec 2020 10:24:56 +0000 (+0100) Subject: Add explanatory texts to reauthentication X-Git-Tag: 5.4.0_Alpha_1~555^2~6^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d80952fe32db768ccd597f09e560241d5c4a4a7;p=GitHub%2FWoltLab%2FWCF.git Add explanatory texts to reauthentication --- diff --git a/com.woltlab.wcf/templates/__reauthenticationLoginAs.tpl b/com.woltlab.wcf/templates/__reauthenticationLoginAs.tpl new file mode 100644 index 0000000000..e4e29a800b --- /dev/null +++ b/com.woltlab.wcf/templates/__reauthenticationLoginAs.tpl @@ -0,0 +1,4 @@ +
+
{lang}wcf.user.reauthentication.loginAs{/lang}
+
{$__wcf->user->username}
+
diff --git a/com.woltlab.wcf/templates/reauthentication.tpl b/com.woltlab.wcf/templates/reauthentication.tpl index 02b1ef733d..a00e19fe14 100644 --- a/com.woltlab.wcf/templates/reauthentication.tpl +++ b/com.woltlab.wcf/templates/reauthentication.tpl @@ -1,5 +1,7 @@ {include file='header' __disableAds=true} +

{lang}wcf.user.reauthentication.explanation{/lang}

+ {@$form->getHtml()} {include file='footer' __disableAds=true} diff --git a/syncTemplates.json b/syncTemplates.json index 63a95e31a0..cc632327cb 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -38,6 +38,7 @@ "__pollOptionsFormField", "__radioButtonFormField", "__ratingFormField", + "__reauthenticationLoginAs", "__rowFormContainer", "__rowFormFieldContainer", "__singleMediaSelectionFormField", diff --git a/wcfsetup/install/files/acp/templates/__reauthenticationLoginAs.tpl b/wcfsetup/install/files/acp/templates/__reauthenticationLoginAs.tpl new file mode 100644 index 0000000000..e4e29a800b --- /dev/null +++ b/wcfsetup/install/files/acp/templates/__reauthenticationLoginAs.tpl @@ -0,0 +1,4 @@ +
+
{lang}wcf.user.reauthentication.loginAs{/lang}
+
{$__wcf->user->username}
+
diff --git a/wcfsetup/install/files/acp/templates/reauthentication.tpl b/wcfsetup/install/files/acp/templates/reauthentication.tpl index 4a682a73b0..645830a59d 100644 --- a/wcfsetup/install/files/acp/templates/reauthentication.tpl +++ b/wcfsetup/install/files/acp/templates/reauthentication.tpl @@ -6,6 +6,8 @@ +

{lang}wcf.user.reauthentication.explanation{/lang}

+ {@$form->getHtml()} {include file='footer'} diff --git a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php index 5e17a05130..f225565d45 100644 --- a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php @@ -121,7 +121,6 @@ class MultifactorAuthenticationForm extends AbstractFormBuilderForm { $this->form->appendChild( TemplateFormNode::create('loginAs') - ->application('wcf') ->templateName('__multifactorAuthenticationLoginAs') ); diff --git a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php index 2de11450e4..ee9c1f301e 100644 --- a/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/ReauthenticationForm.class.php @@ -4,6 +4,7 @@ use wcf\form\AbstractFormBuilderForm; use wcf\system\application\ApplicationHandler; use wcf\system\exception\IllegalLinkException; use wcf\system\form\builder\field\user\UserPasswordField; +use wcf\system\form\builder\TemplateFormNode; use wcf\system\request\LinkHandler; use wcf\system\WCF; use wcf\util\HeaderUtil; @@ -54,10 +55,12 @@ class ReauthenticationForm extends AbstractFormBuilderForm { protected function createForm() { parent::createForm(); - $this->form->appendChild( + $this->form->appendChildren([ + TemplateFormNode::create('loginAs') + ->templateName('__reauthenticationLoginAs'), UserPasswordField::create() ->required(), - ); + ]); } /** diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index f46ae2e503..6d8ed35bcc 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4747,6 +4747,8 @@ sich{/if} nicht bei uns registriert {if LANGUAGE_USE_INFORMAL_VARIANT}hast{else} getBlacklistMatchesTitle() item=matchLabel}{$matchLabel}{/implode}).]]> + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index e2e45e7190..b51a604d25 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4745,6 +4745,8 @@ not register with us.]]> getBlacklistMatchesTitle() item=matchLabel}{$matchLabel}{/implode}).]]> + +