Change default ReCAPTCHA div class from g-recaptcha-response to g-recaptcha

This appears to unbreak recaptcha rendering on recaptcha web auth fallback pages.
This commit is contained in:
Andrew Morgan 2023-01-14 16:26:01 +00:00 committed by GitHub
parent 477a44faa6
commit 5e3e5f68d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)