]> source.dussan.org Git - gitea.git/commit
add CfTurnstileSitekey context data to all captcha templates (#31874)
authorRowan Bohde <rowan.bohde@gmail.com>
Mon, 19 Aug 2024 17:58:53 +0000 (12:58 -0500)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 17:58:53 +0000 (17:58 +0000)
commit0d24c9f383255605d68a92cc5f087c3f16a1d735
tree581a31d251eafbceaeb30ba7bd92a3a864203fc0
parentccf7366db0b47e0720a61666acdaa6e6ab1e2273
add CfTurnstileSitekey context data to all captcha templates (#31874)

In the OpenID flows, the "CfTurnstileSitekey" wasn't populated, which
caused those flows to fail if using Turnstile as the Captcha
implementation.

This adds the missing context variables, allowing Turnstile to be used
in the OpenID flows.
routers/web/auth/linkaccount.go
routers/web/auth/openid.go