Skip to content

fix(email): attach Turnstile token to email→address lookup (organizer/will-call) - #110

Merged
dadadave80 merged 1 commit into
mainfrom
fix/lookup-email-turnstile
Jun 21, 2026
Merged

dadadave80 merged 1 commit into
mainfrom
fix/lookup-email-turnstile

Conversation

@dadadave80

Copy link
Copy Markdown
Member

Same bug class as #107, found while tracing it. /api/identity/lookup-email enforces Turnstile, but both callers POST { email } with no token, so the lookup 403s with "Bot check failed":

  • Organizer email check-in (EventManageScreen)
  • Door will-call lookup (DoorScreen)

This would block organizer-side check-in by email once you test it.

Fix

getTurnstileToken() before each fetch, include it in the body (same pattern as #107 / lib/sponsor.ts).

Verification

bunx tsc --noEmit clean · eslint 0 errors on both files (4 pre-existing warnings, unrelated).

Relationship to #107

Independent — #107 fixes the attendee wallet OTP send; this fixes the organizer lookup. Both branched cleanly; merge in any order.

🤖 Generated with Claude Code

…/will-call)

/api/identity/lookup-email enforces Turnstile, but both callers — the organizer
email check-in (EventManageScreen) and the door will-call lookup (DoorScreen) —
POSTed { email } with no token, so the lookup would 403 with "Bot check failed"
the same way the wallet OTP send did (#107). Acquire getTurnstileToken() before
each fetch and include it in the body.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hostit-sui Ready Ready Preview, Comment Jun 21, 2026 9:19pm

@dadadave80
dadadave80 merged commit 8cc8f54 into main Jun 21, 2026
7 checks passed
@dadadave80
dadadave80 deleted the fix/lookup-email-turnstile branch June 21, 2026 21:23

This branch was successfully deployed

1 active deployment
Preview — 72b47868 Deployed Jun 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant