Merge branch 'bn_launcher_integration' of https://github.com/bigbluebutton/greenlight2 into bn_launcher_integration

This commit is contained in:
bruckwubete
2018-07-04 15:36:06 -04:00
18 changed files with 90 additions and 59 deletions

View File

@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
user_is_moderator: false,
meeting_logout_url: request.base_url + logout_room_path(@room),
meeting_recorded: true,
moderator_message: "#{invite_msg}\n\n #{request.base_url + relative_root + room_path(@room)}",
moderator_message: "#{invite_msg}\n\n #{request.base_url + room_path(@room)}",
}
end
end

View File

@ -65,8 +65,9 @@ class RoomsController < ApplicationController
# DELETE /:room_uid
def destroy
p @room
# Don't delete the users home room.
@room.destroy if @room != current_user.main_room
@room.destroy if @room.owned_by?(current_user) && @room != current_user.main_room
redirect_to current_user.main_room
end
@ -90,14 +91,6 @@ class RoomsController < ApplicationController
redirect_to @room
end
# POST /:room_uid/home
def home
current_user.main_room = @room
current_user.save
redirect_to @room
end
# POST /:room_uid/:record_id
def update_recording
meta = {

View File

@ -19,18 +19,6 @@ class SessionsController < ApplicationController
end
end
# POST /launch
def launch
# This will recieve a encoded POST from a launcher that
# contains the provider, and all user information. The
# launcher is what does the authentication, so we know
# that the user is who they say they are. We just need
# to use our secret to decode it and then log them in
# to GreenLight (or sign them up).
# User.from_launch()
end
# GET/POST /auth/:provider/callback
def omniauth
user = User.from_omniauth(request.env['omniauth.auth'])