cms.c2sgmbh/src/hooks
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
..
auditAuthEvents.ts feat: BullMQ queue system for email and PDF processing 2025-12-09 22:59:17 +00:00
auditTenantChanges.ts fix: complete audit logging integration based on audit review 2025-12-07 21:24:28 +00:00
auditUserChanges.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
emailFailureAlertHook.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
formSubmissionHooks.ts feat: enhance FormSubmissions with workflow and tracking 2025-12-10 09:13:06 +00:00
invalidateCache.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
invalidateEmailCache.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
sendFormNotification.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
sendNewsletterConfirmation.ts fix: newsletter double opt-in bug fixes 2025-12-10 20:17:28 +00:00