From b8084c2cf8821c1b1a64b7dfd45cbe09fde66514 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 26 Jan 2015 01:08:48 +0100 Subject: [PATCH] Sync acptemplates/recaptcha.tpl with templates/recaptcha.tpl --- .../install/files/acp/templates/recaptcha.tpl | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/wcfsetup/install/files/acp/templates/recaptcha.tpl b/wcfsetup/install/files/acp/templates/recaptcha.tpl index e215b27fe1..8fe792a996 100644 --- a/wcfsetup/install/files/acp/templates/recaptcha.tpl +++ b/wcfsetup/install/files/acp/templates/recaptcha.tpl @@ -1,6 +1,8 @@ {if $recaptchaLegacyMode|empty} {include file='captcha'} {else} + {* No explicit keys were set, use legacy V1 API and WoltLab's OEM keys *} + {if RECAPTCHA_PUBLICKEY === '' || RECAPTCHA_PRIVATEKEY === ''}
{lang}wcf.recaptcha.description{/lang} @@ -94,4 +96,83 @@ {/if}
+ {else} +
+ {lang}wcf.recaptcha.title{/lang} + {assign var="recaptchaBucketID" value=true|microtime|sha1} +
+
+
+
+ + {if (($errorType|isset && $errorType|is_array && $errorType[recaptchaString]|isset) || ($errorField|isset && $errorField == 'recaptchaString'))} + {if $errorType|is_array && $errorType[recaptchaString]|isset} + {assign var='__errorType' value=$errorType[recaptchaString]} + {else} + {assign var='__errorType' value=$errorType} + {/if} + + {if $__errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.captcha.recaptchaV2.error.recaptchaString.{$__errorType}{/lang} + {/if} + + {/if} +
+
+ +
+ {/if} {/if} -- 2.20.1