From: Tim Düsterhus Date: Wed, 18 Nov 2020 11:50:22 +0000 (+0100) Subject: Show the one time code within the mail's subject X-Git-Tag: 5.4.0_Alpha_1~555^2~48^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04ca3d8f2fdeed8c11bba5bc451075e1c7d7c59f;p=GitHub%2FWoltLab%2FWCF.git Show the one time code within the mail's subject --- diff --git a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php index 21054dc293..b487ed442b 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/EmailMultifactorMethod.class.php @@ -101,7 +101,9 @@ class EmailMultifactorMethod implements IMultifactorMethod { $email->setRecipient($setup->getUser()); $email->setSubject( - WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.email.subject') + WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.email.subject', [ + 'code' => $code, + ]) ); $email->setHtmlMessage( WCF::getLanguage()->getDynamicVariable('wcf.user.security.multifactor.email.body.html', [ diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index cfc9c3af01..e5764a96e8 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -4884,7 +4884,7 @@ Die E-Mail-Adresse des neuen Benutzers lautet: {@$user->email} {$lastCode|date:'H:i:s'} an {if LANGUAGE_USE_INFORMAL_VARIANT}deine{else}Ihre{/if} E-Mail-Adresse bei {$emailDomain} gesendet.]]> - + {$code}]]> diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 47a8624f49..5d3a984cfb 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -4881,7 +4881,7 @@ Open the link below to access the user profile: {$lastCode|date:'g:i:s a'} to your email address at {$emailDomain}.]]> - + {$code}]]>