🔒️(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 e0c5aa1d58
commit ab14a1e045
+2 -2
View File
@@ -197,7 +197,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,
@@ -219,7 +219,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,