mirror of
https://github.com/barkeser2002/offline-db.git
synced 2026-09-25 02:19:59 +03:00
This commit adds a `password` field to the `Room` model to support private watch party rooms. It updates the `RoomSerializer` to include the password (write-only) and a boolean indicator (`is_private`). Furthermore, it enforces password verification in both the REST API (`RoomViewSet.retrieve`) and the WebSocket layer (`WatchPartyConsumer.connect`). Corresponding security tests have been added. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>