forked from External/greenlight
clean up for PR
This commit is contained in:
@ -6,7 +6,6 @@ class ApplicationController < ActionController::Base
|
||||
include SessionsHelper
|
||||
|
||||
protect_from_forgery with: :exception
|
||||
skip_before_filter :verify_authenticity_token
|
||||
|
||||
MEETING_NAME_LIMIT = 90
|
||||
USER_NAME_LIMIT = 30
|
||||
|
@ -5,12 +5,7 @@ class MainController < ApplicationController
|
||||
|
||||
# GET /
|
||||
def index
|
||||
if current_user
|
||||
# Redirect authenticated users to their room.
|
||||
redirect_to room_path(current_user.main_room)
|
||||
else
|
||||
# Redirect unauthenticated users to root.
|
||||
#TODO use env? for launcher login endpoint
|
||||
if Rails.env.production? && !current_user
|
||||
redirect_to "#{Rails.configuration.relative_url_root}/auth/bn_launcher"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user