forked from External/greenlight
separate root page and meetings page
This commit is contained in:
@ -2,6 +2,9 @@ class LandingController < ApplicationController
|
||||
include BbbApi
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def resource
|
||||
if params[:resource] == 'meetings'
|
||||
render_meeting
|
||||
elsif params[:resource] == 'rooms'
|
||||
|
@ -2,7 +2,7 @@ class SessionsController < ApplicationController
|
||||
def create
|
||||
@user = User.from_omniauth(request.env['omniauth.auth'])
|
||||
session[:user_id] = @user.id
|
||||
redirect_to controller: 'landing', action: 'index', id: @user.encrypted_id, resource: 'rooms'
|
||||
redirect_to @user.room_url
|
||||
rescue => e
|
||||
logger.error "Error authenticating via omniauth: #{e}"
|
||||
redirect_to root_path
|
||||
|
Reference in New Issue
Block a user