Task: Wire Email Notification Mailer Service
Overview
Password reset logs tokens to console; notification preferences exist but nothing sends email. Wire a pluggable mailer without breaking existing auth contracts.
Goals
MailerModule with ConsoleMailerAdapter (dev) and SmtpMailerAdapter stub
- Password reset sends email when user exists (still no enumeration)
- New subscriber notifies creator if preferences allow
newSubscriber
- Env:
MAILER_DRIVER, SMTP settings in .env.example
Deliverables
- Templates for reset + new subscriber
- Unit tests with mocked adapter
- Docs for configuring mailer in local/prod
Acceptance Criteria
forgotPassword does not log raw token in production mode
- Nonexistent email still returns
200
- Creator with
newSubscriber: false receives no email
- Mail failures are logged but do not fail subscribe/reset
- At least 6 tests
Task: Wire Email Notification Mailer Service
Overview
Password reset logs tokens to console; notification preferences exist but nothing sends email. Wire a pluggable mailer without breaking existing auth contracts.
Goals
MailerModulewithConsoleMailerAdapter(dev) andSmtpMailerAdapterstubnewSubscriberMAILER_DRIVER, SMTP settings in.env.exampleDeliverables
Acceptance Criteria
forgotPassworddoes not log raw token in production mode200newSubscriber: falsereceives no email