Commit Graph

10 Commits

Author SHA1 Message Date
Whykioh 42a388cbe1 Harden for public launch: rate limiting, CORS, error display, Gitea webhook sig
- User::login() locks an account for 15 min after 5 failed attempts
- CORS now restricted to an explicit origin whitelist instead of *
- display_errors disabled in production (errors still logged server-side)
- webhook.php now checks Gitea's actual signature header (X-Gitea-Signature,
  raw hex) instead of GitHub's format, which never matched on this Gitea instance

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 17:53:28 +02:00
Whykioh 4c61b7f276 Fix crash bugs and secure webhook/TMDB key
- Add missing MovieController::remove/markWatched (routes called undefined methods)
- Fix linkPartner(): commit() was unreachable after an early return, so partner
  linking was never actually persisted in the DB
- Add missing removeMovie/markWatched functions in app.js
- webhook.php now verifies a GitHub HMAC signature before running git reset --hard
- Move TMDB API key server-side via a new TmdbController proxy (tmdb-search/tmdb-details)
  instead of exposing it in client-side JS

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 16:54:40 +02:00
Whykioh d15aea79e8 ae 2026-07-12 16:26:09 +02:00
Whykioh fca5df9d06 Fix bad sql connexion 2026-07-12 16:12:29 +02:00
Whykioh c74140aaad Fix unlink method 2026-07-12 16:10:25 +02:00
Whykioh dd32a2dd12 Fix bad sql connexion 2026-07-12 16:01:36 +02:00
Whykioh be73ed60ad Fix link function 2026-07-12 15:54:48 +02:00
Whykioh 63556b5774 Fix unlink function 2026-07-12 15:53:44 +02:00
Whykioh d7328ae9d3 Add pairing between users 2026-07-11 09:20:26 +02:00
Whykioh 81b1b3b835 Add User system 2026-07-11 09:13:29 +02:00