Skip to content

Commit

Permalink
fix username
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed May 27, 2024
1 parent d8de4d0 commit fecc518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ async function tokenize(req: Request): Promise<Response> {
let room = permissions.find(r => r.room === roomName);

if(room) {
console.log(`Found config for room ${roomName}`)
const userName = userInfo["email"]
console.log(`Found config for room ${roomName}. Checking for user ${userName}`)
tokenRoom = roomName;
// check if the user is in the moderator list
if(room.moderators.includes(userName)) {
Expand Down

0 comments on commit fecc518

Please sign in to comment.