mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 04:53:14 -06:00
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:
parent
477a44faa6
commit
5e3e5f68d9
|
|
@ -88,7 +88,7 @@ func (c *ClientAPI) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
||||||
c.RecaptchaFormField = "g-recaptcha"
|
c.RecaptchaFormField = "g-recaptcha"
|
||||||
}
|
}
|
||||||
if c.RecaptchaSitekeyClass == "" {
|
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_public_key", c.RecaptchaPublicKey)
|
||||||
checkNotEmpty(configErrs, "client_api.recaptcha_private_key", c.RecaptchaPrivateKey)
|
checkNotEmpty(configErrs, "client_api.recaptcha_private_key", c.RecaptchaPrivateKey)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue