Merge pull request #19187 from gustavotrott/client-generateJoinUrl

feature: Support pass param enforceLayout to Api /getJoinUrl
This commit is contained in:
Gustavo Trott 2023-11-21 14:38:25 -03:00 committed by GitHub
commit 75f3cada07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1250,6 +1250,11 @@ class ApiController {
String extId = validationService.encodeString(meeting.getExternalId())
String fullName = validationService.encodeString(us.fullname)
String query = "fullName=${fullName}&meetingID=${extId}&role=${us.role.equals(ROLE_MODERATOR) ? ROLE_MODERATOR : ROLE_ATTENDEE}&redirect=true&userID=${us.getExternUserID()}"
if (!StringUtils.isEmpty(params.enforceLayout)) {
query += "&enforceLayout=${validationService.encodeString(params.enforceLayout)}";
}
String checksum = DigestUtils.sha1Hex(method + query + validationService.getSecuritySalt())
String defaultServerUrl = paramsProcessorUtil.defaultServerUrl
response.addHeader("Cache-Control", "no-cache")