From: Tim Düsterhus Date: Thu, 26 Nov 2020 15:46:51 +0000 (+0100) Subject: Do not show the back up code description if codes are fresh X-Git-Tag: 5.4.0_Alpha_1~555^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c317ab63e52a948a57236aac231acf532487456d;p=GitHub%2FWoltLab%2FWCF.git Do not show the back up code description if codes are fresh The phrasing does not really apply to the fresh set of codes. --- diff --git a/com.woltlab.wcf/templates/multifactorManageBackup.tpl b/com.woltlab.wcf/templates/multifactorManageBackup.tpl index cf8aae514d..15c3642d88 100644 --- a/com.woltlab.wcf/templates/multifactorManageBackup.tpl +++ b/com.woltlab.wcf/templates/multifactorManageBackup.tpl @@ -1,4 +1,4 @@ -{lang}wcf.user.security.multifactor.backup.existingCodes.description{/lang} +{if !$isUnveiled}{lang}wcf.user.security.multifactor.backup.existingCodes.description{/lang}{/if}
    {foreach from=$codes item='code'}
  1. diff --git a/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php b/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php index a837b0f327..18dbdd2923 100644 --- a/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php +++ b/wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php @@ -115,6 +115,7 @@ class BackupMultifactorMethod implements IMultifactorMethod { ->templateName('multifactorManageBackup') ->variables([ 'codes' => $codes, + 'isUnveiled' => $returnData !== null, ]), ]); $form->appendChild($statusContainer);