ghostguild-org/server/api/events/[id]
Jennie Robinson Faber 6f9e6a3d98 feat(events): guest accounts for public event registration
Non-members who register for an event now get a persistent identity:
with consent, a status:"guest" Member is upserted and an auth cookie is
set so the "You're Registered" state survives a page refresh.

Tiered auto-login matches passwordless-auth norms — auto-login is only
safe when the account holds no privileges:
- New email → create guest + cookie
- Returning guest → cookie
- Existing non-guest (active/pending/etc.) → attach ticket only, no
  cookie, confirmation email includes a sign-in link

Guests are gated on status === "guest", so admin/middleware code that
keys on status === "active" naturally excludes them. Guests are also
treated as non-members for ticket pricing/validation to prevent picking
up member-only pricing on their second registration.
2026-04-16 21:23:31 +01:00
..
tickets feat(events): guest accounts for public event registration 2026-04-16 21:23:31 +01:00
calendar.get.js Many an update! 2025-12-01 15:26:42 +00:00
cancel-registration.post.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00
check-registration.post.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
check-series-access.get.js Add landing page 2025-11-03 11:17:51 +00:00
guest-register.post.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
payment.post.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
register.post.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00
waitlist.delete.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00
waitlist.post.js Add Zod validation to all API endpoints and remove debug test route 2026-03-01 17:04:26 +00:00