Skip to content

feat: single-step signup, async verification, and public invite preview - #50

Open
TimerErTim-Agent wants to merge 1 commit into
feat/roster-lifecycle-and-game-deadlinefrom
feat/single-step-signup-unverified-limit
Open

TimerErTim-Agent wants to merge 1 commit into
feat/roster-lifecycle-and-game-deadlinefrom
feat/single-step-signup-unverified-limit

Conversation

@TimerErTim-Agent

Copy link
Copy Markdown
Collaborator

Stacked on #49.

Summary

  • Collapse signup into one step (POST /api/registrierung with email, passwort, optional displayName), issuing an immediate active Session and dispatching async verification mail.
  • Return explicit 409 Conflict ("Diese E-Mail-Adresse ist bereits vergeben") when registering with an existing email address.
  • Persist Benutzer.email_verified_at (v8 migration backfills pre-existing accounts), limit unverified users to 1 game (403 Forbidden on a second create/join), and suppress outbound game-event transactional emails until verified.
  • Add public GET /api/games/by-code/{invite_code} returning GameInvitePreview so invited guests can preview a lobby before signing up or logging in.
  • Add public POST /api/konto/email/bestaetigen, authenticated POST /api/konto/email/bestaetigung-erneut, /registrierung/bestaetigen verification page, and unverified trial notice banners.

Part of #43

Verification

  • mise run ci passed cleanly (unit/conformance, v8 migration, E2E, Vitest, Biome, TypeScript, Next.js static export, release build, and OpenAPI schema sync).

This branch has not been deployed

No deployments
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