forked from External/greenlight
Merge branch 'master' into room-settings
This commit is contained in:
@ -62,7 +62,8 @@ module Joiner
|
||||
redirect_to join_path(@room, current_user.name, opts, current_user.uid)
|
||||
else
|
||||
join_name = params[:join_name] || params[@room.invite_path][:join_name]
|
||||
redirect_to join_path(@room, join_name, opts)
|
||||
|
||||
redirect_to join_path(@room, join_name, opts, fetch_guest_id)
|
||||
end
|
||||
else
|
||||
search_params = params[@room.invite_path] || params
|
||||
@ -114,5 +115,19 @@ module Joiner
|
||||
when "disabled"
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def fetch_guest_id
|
||||
return cookies[:guest_id] if cookies[:guest_id].present?
|
||||
|
||||
guest_id = "gl-guest-#{SecureRandom.hex(12)}"
|
||||
|
||||
cookies[:guest_id] = {
|
||||
value: guest_id,
|
||||
expires: 1.day.from_now
|
||||
}
|
||||
|
||||
guest_id
|
||||
end
|
||||
end
|
||||
|
@ -138,6 +138,7 @@ class SessionsController < ApplicationController
|
||||
'start_tls'
|
||||
end
|
||||
ldap_config[:base] = ENV['LDAP_BASE']
|
||||
ldap_config[:filter] = ENV['LDAP_FILTER']
|
||||
ldap_config[:uid] = ENV['LDAP_UID']
|
||||
|
||||
if params[:session][:username].blank? || session_params[:password].blank?
|
||||
|
@ -36,9 +36,9 @@
|
||||
<td class="text-left">
|
||||
<% running = room_is_running(room.bbb_id) %>
|
||||
<% if running %>
|
||||
<%= t("administrator.rooms.running") %>
|
||||
<%= t("administrator.rooms.table.running") %>
|
||||
<% else %>
|
||||
<%= t("administrator.rooms.not_running") %>
|
||||
<%= t("administrator.rooms.table.not_running") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
@ -48,7 +48,7 @@
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<%= link_to room_path(room), class: "dropdown-item" do %>
|
||||
<i class="dropdown-icon far fa-eye"></i> <%= t("administrator.rooms.view") %>
|
||||
<i class="dropdown-icon far fa-eye"></i> <%= t("administrator.rooms.table.view") %>
|
||||
<% end %>
|
||||
<%= button_to start_room_path(room), class: "dropdown-item", "data-disable": "" do %>
|
||||
<i class="dropdown-icon fas fa-door-open"></i> <%= running ? t("room.join") : t("room.start") %>
|
||||
|
Reference in New Issue
Block a user