🔒️(backend) bind accepted lobby entries to the current username

Bind an accepted lobby entry to the username the participant had at
the moment of acceptance.

This prevents a participant, once accepted, from changing their
display name and reusing the same lobby grant to enter the room
under a different identity.
This commit is contained in:
lebaudantoine
2026-08-18 11:33:52 +02:00
parent c7aa3c45cf
commit d55d131dc6
2 changed files with 38 additions and 2 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ class LobbyService:
livekit_config = utils.generate_livekit_config(
room_id=room_id,
user=user,
username=username,
username=participant.username,
color=participant.color,
configuration=room.configuration,
participant_id=participant.id,
@@ -171,7 +171,7 @@ class LobbyService:
livekit_config = utils.generate_livekit_config(
room_id=room_id,
user=user,
username=username,
username=participant.username,
color=participant.color,
configuration=room.configuration,
participant_id=participant.id,