Commit Graph

5 Commits

Author SHA1 Message Date
Brian Fertig 8f77ec52db security: patch vulnerable dependencies (zod, nodemailer, sharp, multer, body-parser, qs, etc.) 2026-10-25 16:55:33 -06:00
Brian Fertig bb6a1a962e chore: simplify playlist visibility logic and update dependencies
- Remove `VISIBILITY_RANK` and auto-upgrade logic from admin routes
- Simplify `playlists.js` by removing `getEffectiveVisibility` and complex `NOT EXISTS` subqueries in list queries
- Update `public.js` to use direct playlist visibility instead of effective visibility
- Bump `better-sqlite3` to v11.10.0 and set project version to 1.0.0
2026-05-02 16:38:09 -06:00
Brian Fertig be5857fe3b feat: add user avatars with cropping and image lightbox
- Add `avatar_path` column to users table via migration 008
- Integrate `cropperjs` and `sharp` for avatar upload, cropping (600×600), and PNG conversion
- Serve avatars at `/media/avatars` with static caching; expose `/static/vendor/cropperjs`
- Add avatar management UI in account settings with modal cropping workflow
- Display creator avatars on song/playlist detail pages (fallback to initial)
- Implement generic image lightbox (`lightbox.js`) for cover art with zoom animations and keyboard support
- Refactor song/playlist detail views to use responsive layout and lightbox-enabled covers
2026-04-11 10:08:05 -06:00
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
Brian Fertig a515df90de first commit 2026-04-09 18:41:01 -06:00