Commit Graph

8 Commits

Author SHA1 Message Date
heagbokat
e0247bc288 Fix case-insensitive auth and harden for production
- Fix login/register to treat usernames case-insensitively (HeagBoKaT == heagbokat) using LOWER() in SQL with JS .toLowerCase() for Unicode safety
- Add helmet for HTTP security headers and express-rate-limit on auth endpoints (20 req / 15 min) to prevent brute-force
- Lock CORS to ALLOWED_ORIGIN env var; warn if JWT_SECRET is the default dev key
- Serve built client/dist from Express so a single PM2 process handles everything
- Add deploy.sh, README.md with full first-run and auto-restart instructions, and server/.env.example

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 23:29:06 +03:00
HeagBoKaT
466cb97a4e Fix likes batch route order, add profile links to all usernames 2026-05-29 14:46:18 +03:00
HeagBoKaT
025e52e6b1 Fix likes display, add avatar system (presets+upload), improve desktop layout, fix profile viewing 2026-05-29 14:21:40 +03:00
HeagBoKaT
3664b60f10 Fix mobile scroll jump, add comments, rename to Котограм 2026-05-29 13:58:42 +03:00
HeagBoKaT
cfc6001d62 Админ: управление caption, баллами, список постов 2026-05-29 12:43:37 +03:00
HeagBoKaT
12701ffbc2 Баллы +1 за загрузку, убраны из лайков. Админ-панель (admin/admin123) 2026-05-29 12:13:42 +03:00
HeagBoKaT
ea0df060e8 UI: тёплый современный дизайн + русификация 2026-05-29 10:38:01 +03:00
HeagBoKaT
e4b25fe4b7 first commit 2026-05-29 10:23:25 +03:00