From ab14a1e04541b9d1039e06d59ce99a4ce12aa841 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 18 Aug 2026 11:33:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F(backend)=20bind=20accepte?= =?UTF-8?q?d=20lobby=20entries=20to=20the=20current=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/backend/core/services/lobby.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/core/services/lobby.py b/src/backend/core/services/lobby.py index 5b10228bb..e77cfbe82 100644 --- a/src/backend/core/services/lobby.py +++ b/src/backend/core/services/lobby.py @@ -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,