Files
evig/scripts
g-butandClaude Sonnet 4.6 fce743b182 feat: real membership application system (replaces email-only flow)
Architecture:
- User ≠ Member: users are accounts, members are users with is_member=true
- Migration 062: adds is_member/member_since/member_type/member_paid_until
  to users + creates membership_applications table
- Fixed misleading "Mitglieder" stat label (now "Nutzer:innen")

New membership flow:
- /mitglied-werden now has a real form (not mailto: link)
- Works both for logged-in and anonymous users
- Logged-in: pre-fills name/email, links application to user_id
- Anonymous: accepts application, admin manually links later
- Shows 3 states: form, pending application, already a member
- Member type selection: Regular CHF 50 / Reduced CHF 20

API:
- POST /api/membership/apply — validated, rate-limited
- Prevents duplicate pending applications from same user
- Stores in membership_applications with pending status

FAQ updated to clarify:
- Difference between user account and Verein membership
- How application process works
- How to pay annual dues

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 17:12:35 +02:00
..
2026-01-07 19:57:05 +01:00