From 96a4ba2b47dffe50f8ce5ac86a7f2fa6a7ced8b2 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:29 -0400 Subject: [PATCH] Add callback for turnstile --- app/routes/report.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/routes/report.tsx b/app/routes/report.tsx index 873eaec..8dc805f 100644 --- a/app/routes/report.tsx +++ b/app/routes/report.tsx @@ -68,6 +68,10 @@ export default function () { const { logged_in, site_key } = useLoaderData(); + function setToken(token: string) { + setTurnstileToken(token); + } + async function submit() { const usernames = ( document.getElementById("usernames") as HTMLInputElement @@ -232,7 +236,11 @@ export default function () {
-
+

By submitting this form, you agree to the{" "}