Bri-Tunes/db/migrations
Brian Fertig 04be828e67 feat: add email verification flow with SMTP support
- Introduce email_verified column and email_verifications table for token-based verification
- Add nodemailer dependency and create mailer service (SMTP + dev fallback to console)
- On registration, generate 24h verification token and send email (or log URL in dev)
- Add /verify-email GET route to validate tokens and mark user as verified
- Add /resend-verification POST route for logged-in users to re-send link
- Update flash system with new warning style for unverified users
- Update .env.example with APP_BASE_URL and SMTP_* configuration variables

Note: existing users are grandfathered in (email_verified=1) via migration.
2026-04-09 22:48:38 -06:00
..
001_init.sql first commit 2026-04-09 18:41:01 -06:00
002_visibility.sql feat: implement three-tier visibility system for songs and playlists 2026-04-09 22:40:18 -06:00
003_email_verification.sql feat: add email verification flow with SMTP support 2026-04-09 22:48:38 -06:00