frontend: Turnstile widget on registration pages

Renders the widget (explicit render of challenges.cloudflare.com's api.js) on the password/passkey and SSO registration forms only when describeServer advertises turnstileSiteKey, keeps submit disabled until a token arrives, sends it as x-turnstile-token, and resets the widget after a failed attempt since tokens are single-use.

f4ab89e9 parent b4d38212 +340 −5
browse files