From 5e3e5f68d97bcd128d71350746276efbf8d16d05 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Sat, 14 Jan 2023 16:26:01 +0000 Subject: [PATCH] Change default ReCAPTCHA div class from `g-recaptcha-response` to `g-recaptcha` This appears to unbreak recaptcha rendering on recaptcha web auth fallback pages. --- setup/config/config_clientapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/config/config_clientapi.go b/setup/config/config_clientapi.go index 11628b1b0..41db5633b 100644 --- a/setup/config/config_clientapi.go +++ b/setup/config/config_clientapi.go @@ -88,7 +88,7 @@ func (c *ClientAPI) Verify(configErrs *ConfigErrors, isMonolith bool) { c.RecaptchaFormField = "g-recaptcha" } if c.RecaptchaSitekeyClass == "" { - c.RecaptchaSitekeyClass = "g-recaptcha-response" + c.RecaptchaSitekeyClass = "g-recaptcha" } checkNotEmpty(configErrs, "client_api.recaptcha_public_key", c.RecaptchaPublicKey) checkNotEmpty(configErrs, "client_api.recaptcha_private_key", c.RecaptchaPrivateKey)