clean up for PR

This commit is contained in:
bruckwubete
2018-07-04 15:20:21 -04:00
parent 3c11aca1aa
commit 3bb0c26f33
5 changed files with 5 additions and 11 deletions

View File

@ -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

View File

@ -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