dendrite/setup/config
Andrew Morgan eeeb3017d6
Switch the default config option values for recaptcha_sitekey_class and recaptcha_form_field (#2939)
Attempting to use the [web auth fallback
mechanism](https://spec.matrix.org/v1.5/client-server-api/#fallback) for
Google ReCAPTCHA with the default setting for
`client_api.recaptcha_sitekey_class` of "g-recaptcha-response" results
in no captcha being rendered:


![image](https://user-images.githubusercontent.com/1342360/212482321-14980045-6e20-4d59-adaa-59a01ad88367.png)

I cross-checked the captcha code between [dendrite.matrix.org's fallback
page](https://dendrite.matrix.org/_matrix/client/r0/auth/m.login.recaptcha/fallback/web?session=asdhjaksd)
and [matrix-client.matrix.org's
one](https://matrix-client.matrix.org/_matrix/client/r0/auth/m.login.recaptcha/fallback/web?session=asdhjaksd)
(which both use the same captcha public key) and noticed a discrepancy
in the `class` attribute of the div that renders the captcha.
[ReCAPTCHA's docs
state](https://developers.google.com/recaptcha/docs/v3#automatically_bind_the_challenge_to_a_button)
to use "g-recaptcha" as the class for the submit button.

I noticed this when user `@parappanon:parappa.party` reported that they
were also seeing no captcha being rendered on their Dendrite instance.
Changing `client_api.recaptcha_sitekey_class` to "g-recaptcha" caused
their captcha to render properly as well.

There may have been a change in the class name from ReCAPTCHA v2 to v3?
The [docs for
v2](https://developers.google.com/recaptcha/docs/display#auto_render)
also request one uses "g-recaptcha" though.

Thus I propose changing the default setting to unbreak people's
recaptcha auth fallback pages. Should fix dendrite.matrix.org as well.
2023-01-16 12:52:30 +01:00
..
config.go Add simplified helm chart (#2905) 2023-01-06 15:44:10 +01:00
config_appservice.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_clientapi.go Switch the default config option values for recaptcha_sitekey_class and recaptcha_form_field (#2939) 2023-01-16 12:52:30 +01:00
config_federationapi.go HTTP connection keepalives (#2730) 2022-09-20 17:17:44 +01:00
config_global.go Handle guest access [1/2?] (#2872) 2022-12-22 13:05:59 +01:00
config_jetstream.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_keyserver.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_mediaapi.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_mscs.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_roomserver.go Configuration tweaks (#2567) 2022-09-01 14:15:41 +01:00
config_syncapi.go Update search docs 2022-09-27 17:10:47 +01:00
config_test.go Handle guest access [1/2?] (#2872) 2022-12-22 13:05:59 +01:00
config_userapi.go Add support for config "auto_join_rooms" (#2823) 2022-10-26 11:04:53 +02:00