mirror of
1
Fork 0
forgejo/routers/web/auth
Giteabot bf07064e40
add CfTurnstileSitekey context data to all captcha templates (#31874) (#31876)
Backport #31874 by @bohde

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.

Co-authored-by: Rowan Bohde <rowan.bohde@gmail.com>
(cherry picked from commit 0affb5c775280622b277bba2223c01968bafa8b7)
2024-08-25 17:41:08 +02:00
..
2fa.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
auth.go Add missed return after `ctx.ServerError` (#31130) (#31133) 2024-05-31 14:35:19 +02:00
auth_test.go Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-11 23:36:58 +07:00
linkaccount.go add CfTurnstileSitekey context data to all captcha templates (#31874) (#31876) 2024-08-25 17:41:08 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth.go use existing oauth grant for public client (#31015) 2024-06-06 12:05:50 +02:00
oauth_test.go enable linter testifylint on v7 (#4572) 2024-07-30 19:42:06 +00:00
openid.go add CfTurnstileSitekey context data to all captcha templates (#31874) (#31876) 2024-08-25 17:41:08 +02:00
password.go Clean up log messages (#30313) 2024-04-15 16:11:14 +02:00
webauthn.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00