able to handle launcher login with gem

This commit is contained in:
bruckwubete
2018-07-04 14:48:22 -04:00
parent 2bb41977ed
commit 3c11aca1aa
6 changed files with 20 additions and 8 deletions

View File

@ -7,7 +7,7 @@ class MainController < ApplicationController
def index
if current_user
# Redirect authenticated users to their room.
redirect_to room_path(current_user.room)
redirect_to room_path(current_user.main_room)
else
# Redirect unauthenticated users to root.
#TODO use env? for launcher login endpoint