Repository navigation
fix(email): attach Turnstile token to email→address lookup (organizer/will-call) - #110
Merged
Merged
Conversation
…/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>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same bug class as #107, found while tracing it.
/api/identity/lookup-emailenforces Turnstile, but both callers POST{ email }with no token, so the lookup 403s with "Bot check failed":EventManageScreen)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 --noEmitclean · 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