Fix notice about email activation
authorMarcel Werk <burntime@woltlab.com>
Wed, 29 Nov 2023 14:31:41 +0000 (15:31 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 29 Nov 2023 14:31:41 +0000 (15:31 +0100)
Do not show the notice if the user is already on the correct page.

com.woltlab.wcf/templates/userNotice.tpl

index ce12649ed792f744ef1ccf037c17a037a726eb71..c12a94579a7a91fde0fc74182bbb69dc55086943 100644 (file)
@@ -14,7 +14,7 @@
                <woltlab-core-notice type="info">{lang}wcf.page.availableUpdates{/lang}</woltlab-core-notice>
        {/if}
        
-       {if $templateName != 'registerActivation' && $templateName != 'register' && $templateName != 'redirect' && $__wcf->user->getBlacklistMatches()|empty}
+       {if $templateName != 'registerNewActivationCode' && $templateName != 'registerActivation' && $templateName != 'register' && $templateName != 'authFlowRedirect' && $__wcf->user->getBlacklistMatches()|empty}
                {if $__wcf->user->requiresEmailActivation()}
                        <woltlab-core-notice type="warning">{lang}wcf.user.register.needActivation{/lang}</woltlab-core-notice>
                {elseif $__wcf->user->requiresAdminActivation()}