From a6e400b6b7a476b105bc5123db698f49bf640b5e Mon Sep 17 00:00:00 2001 From: Michelle Date: Thu, 26 Feb 2026 08:50:47 +0100 Subject: [PATCH] joinUrl -> loginURL --- server/config/bbb.js | 6 +++--- server/routes/rooms.js | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/config/bbb.js b/server/config/bbb.js index 1094603..78234b0 100644 --- a/server/config/bbb.js +++ b/server/config/bbb.js @@ -77,7 +77,7 @@ export async function createMeeting(room, logoutURL) { return apiCall('create', params); } -export async function joinMeeting(uid, name, isModerator = false, avatarURL = null, joinUrl = null) { +export async function joinMeeting(uid, name, isModerator = false, avatarURL = null, loginURL = null) { const { moderatorPW, attendeePW } = getRoomPasswords(uid); const params = { meetingID: uid, @@ -88,8 +88,8 @@ export async function joinMeeting(uid, name, isModerator = false, avatarURL = nu if (avatarURL) { params.avatarURL = avatarURL; } - if (joinUrl) { - params.joinUrl = joinUrl; + if (loginURL) { + params.loginURL = loginURL; } return buildUrl('join', params); } diff --git a/server/routes/rooms.js b/server/routes/rooms.js index bd2e315..080b514 100644 --- a/server/routes/rooms.js +++ b/server/routes/rooms.js @@ -343,8 +343,8 @@ router.post('/:uid/start', authenticateToken, async (req, res) => { await createMeeting(room, `${req.protocol}://${req.get('host')}`); const avatarURL = getUserAvatarURL(req, req.user); - const appJoinUrl = `${req.protocol}://${req.get('host')}/join/${room.uid}`; - const joinUrl = await joinMeeting(room.uid, req.user.name, true, avatarURL, appJoinUrl); + const appLoginUrl = `${req.protocol}://${req.get('host')}/join/${room.uid}`; + const joinUrl = await joinMeeting(room.uid, req.user.name, true, avatarURL, appLoginUrl); res.json({ joinUrl }); } catch (err) { console.error('Start meeting error:', err); @@ -378,8 +378,8 @@ router.post('/:uid/join', authenticateToken, async (req, res) => { const isShared = !isOwner && await db.get('SELECT id FROM room_shares WHERE room_id = ? AND user_id = ?', [room.id, req.user.id]); const isModerator = isOwner || !!isShared || room.all_join_moderator; const avatarURL = getUserAvatarURL(req, req.user); - const appJoinUrl = `${req.protocol}://${req.get('host')}/join/${room.uid}`; - const joinUrl = await joinMeeting(room.uid, req.user.name, isModerator, avatarURL, appJoinUrl); + const appLoginUrl = `${req.protocol}://${req.get('host')}/join/${room.uid}`; + const joinUrl = await joinMeeting(room.uid, req.user.name, isModerator, avatarURL, appLoginUrl); res.json({ joinUrl }); } catch (err) { console.error('Join meeting error:', err); @@ -488,8 +488,8 @@ router.post('/:uid/guest-join', async (req, res) => { const baseUrl = `${req.protocol}://${req.get('host')}`; const guestAvatarURL = `${baseUrl}/api/auth/avatar/initials/${encodeURIComponent(name.trim())}`; - const appJoinUrl = `${baseUrl}/join/${room.uid}`; - const joinUrl = await joinMeeting(room.uid, name.trim(), isModerator, guestAvatarURL, appJoinUrl); + const appLoginUrl = `${baseUrl}/join/${room.uid}`; + const joinUrl = await joinMeeting(room.uid, name.trim(), isModerator, guestAvatarURL, appLoginUrl); res.json({ joinUrl }); } catch (err) { console.error('Guest join error:', err);