joinUrl -> loginURL
All checks were successful
Build & Push Docker Image / build (push) Successful in 1m9s

This commit is contained in:
2026-02-26 08:50:47 +01:00
parent 52a2e2260c
commit a6e400b6b7
2 changed files with 9 additions and 9 deletions

View File

@@ -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);
}

View File

@@ -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);