video_calls: Add default password to zoom meetings.

The password will be included in the meeting link, so users won't have
to type it in manually. Example of the newly generated URLs:

https://DOMAIN.zoom.us/j/MEETING_NUMBER?pwd=ENCODED_PASSWORD

This improves the experience in Zoom organizations requiring
authentication for all meetings, as otherwise the waiting room is
forcibly enabled.
This commit is contained in:
Pietro Albini 2024-03-12 10:13:08 +01:00 committed by Tim Abbott
parent 505d66afeb
commit 0f521fba41
2 changed files with 10 additions and 1 deletions

View File

@ -78,6 +78,7 @@ class TestVideoCall(ZulipTestCase):
"host_video": True,
"participant_video": True,
},
"default_password": True,
},
)
self.assertEqual(
@ -113,6 +114,7 @@ class TestVideoCall(ZulipTestCase):
"host_video": False,
"participant_video": False,
},
"default_password": True,
},
)
self.assertEqual(

View File

@ -162,7 +162,14 @@ def make_zoom_video_call(
"settings": {
"host_video": is_video_call,
"participant_video": is_video_call,
}
},
# Generate a default password depending on the user settings. This will
# result in the password being appended to the returned Join URL.
#
# If we don't request a password to be set, the waiting room will be
# forcibly enabled in Zoom organizations that require some kind of
# authentication for all meetings.
"default_password": True,
}
try: