Simplify recaptcha key checks in template
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 10 Dec 2020 08:45:27 +0000 (09:45 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Dec 2020 08:45:27 +0000 (09:45 +0100)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
com.woltlab.wcf/templates/recaptcha.tpl
wcfsetup/install/files/acp/templates/recaptcha.tpl

index 42f74ff0432adb72f831596301f6f32035391576..2009016a6abcc59f203c360832a16c843a6adce1 100644 (file)
@@ -1,7 +1,7 @@
 {if $recaptchaLegacyMode|empty}
        {include file='captcha'}
 {else}
-       {if RECAPTCHA_PUBLICKEY !== '' && RECAPTCHA_PRIVATEKEY !== ''}
+       {if RECAPTCHA_PUBLICKEY && RECAPTCHA_PRIVATEKEY}
                {if $supportsAsyncCaptcha|isset && $supportsAsyncCaptcha && RECAPTCHA_PUBLICKEY_INVISIBLE && RECAPTCHA_PRIVATEKEY_INVISIBLE}
                <section class="section">
                        <h2 class="sectionTitle">{lang}wcf.recaptcha.title{/lang}</h2>
index 42f74ff0432adb72f831596301f6f32035391576..2009016a6abcc59f203c360832a16c843a6adce1 100644 (file)
@@ -1,7 +1,7 @@
 {if $recaptchaLegacyMode|empty}
        {include file='captcha'}
 {else}
-       {if RECAPTCHA_PUBLICKEY !== '' && RECAPTCHA_PRIVATEKEY !== ''}
+       {if RECAPTCHA_PUBLICKEY && RECAPTCHA_PRIVATEKEY}
                {if $supportsAsyncCaptcha|isset && $supportsAsyncCaptcha && RECAPTCHA_PUBLICKEY_INVISIBLE && RECAPTCHA_PRIVATEKEY_INVISIBLE}
                <section class="section">
                        <h2 class="sectionTitle">{lang}wcf.recaptcha.title{/lang}</h2>