From 2ca3c9cb384141e8c6e21d24489363f60d98b6b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 9 Dec 2014 19:38:11 +0100 Subject: [PATCH] Add reCAPTCHA v2 support for users w/o JavaScript --- com.woltlab.wcf/templates/recaptcha.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/com.woltlab.wcf/templates/recaptcha.tpl b/com.woltlab.wcf/templates/recaptcha.tpl index 2fb196a3e0..8fe792a996 100644 --- a/com.woltlab.wcf/templates/recaptcha.tpl +++ b/com.woltlab.wcf/templates/recaptcha.tpl @@ -104,6 +104,18 @@
+ {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]} -- 2.20.1