forked from External/greenlight
able to handle launcher login
This commit is contained in:
@@ -5,6 +5,14 @@ class MainController < ApplicationController
|
||||
|
||||
# GET /
|
||||
def index
|
||||
if current_user
|
||||
# Redirect authenticated users to their room.
|
||||
redirect_to room_path(current_user.room)
|
||||
else
|
||||
# Redirect unauthenticated users to root.
|
||||
#TODO use env? for launcher login endpoint
|
||||
redirect_to "#{Rails.configuration.relative_url_root}/auth/bn_launcher"
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user