From 72636fd6642fcae6e7447dd499cb097c5c65ab32 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Fri, 2 Oct 2020 22:37:53 -0500 Subject: hCaptcha Support (#12594) * Initial work on hCaptcha Signed-off-by: jolheiser * Use module Signed-off-by: jolheiser * Format Signed-off-by: jolheiser * At least return and debug log a captcha error Signed-off-by: jolheiser * Pass context to hCaptcha Signed-off-by: jolheiser * Add context to recaptcha Signed-off-by: jolheiser * fix lint Signed-off-by: Andrew Thornton * Finish hcaptcha Signed-off-by: jolheiser * Update example config Signed-off-by: jolheiser * Apply error fix for recaptcha Signed-off-by: jolheiser * Change recaptcha ChallengeTS to string Signed-off-by: jolheiser Co-authored-by: Andrew Thornton --- templates/user/auth/signup_inner.tmpl | 5 +++++ templates/user/auth/signup_openid_register.tmpl | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'templates/user') diff --git a/templates/user/auth/signup_inner.tmpl b/templates/user/auth/signup_inner.tmpl index 3d9ba17ad7..e52aa2e881 100644 --- a/templates/user/auth/signup_inner.tmpl +++ b/templates/user/auth/signup_inner.tmpl @@ -51,6 +51,11 @@
{{end}} + {{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}} +
+
+
+ {{end}}
diff --git a/templates/user/auth/signup_openid_register.tmpl b/templates/user/auth/signup_openid_register.tmpl index 861e813911..80e98dcc61 100644 --- a/templates/user/auth/signup_openid_register.tmpl +++ b/templates/user/auth/signup_openid_register.tmpl @@ -35,6 +35,11 @@
{{end}} + {{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}} +
+
+
+ {{end}}
-- cgit v1.2.3