cms.c2sgmbh/src/lib/email
Martin Porwoll 411f1a040e fix: newsletter double opt-in bug fixes
- Fix rate limiter: await formLimiter.check() (was missing await)
- Prevent duplicate confirmation emails: add context.skipNewsletterEmail flag
  - Service sets flag when creating/updating subscribers via API
  - Hook skips email sending when flag is present
  - Admin panel creations still trigger the hook
- Fix unsubscribe links: use subscriber ID instead of token for welcome/unsubscribe emails
  - Token is nullified after confirmation, making old links invalid
  - ID-based lookups always work

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 20:17:28 +00:00
..
newsletter-service.ts fix: newsletter double opt-in bug fixes 2025-12-10 20:17:28 +00:00
newsletter-templates.ts feat: add Newsletter Double Opt-In email system 2025-12-10 16:37:16 +00:00
payload-email-adapter.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
tenant-email-service.ts docs: consolidate and update documentation 2025-12-09 09:25:00 +00:00