login with provider in personal room

This commit is contained in:
Zachary Chai
2016-10-20 10:15:56 -04:00
parent e1ab78ec63
commit 4ec17344eb
4 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ class LandingController < ApplicationController
helper_method :admin?
private
def render_meeting
@resource = params[:resource]
@meeting_token = params[:id] || @meeting_token = helpers.new_meeting_token
@ -42,6 +42,7 @@ class LandingController < ApplicationController
@user = User.find_by(username: @meeting_token)
if @user.nil?
redirect_to root_path
return
end
render :action => 'room'
end

View File

@ -21,7 +21,7 @@ class UsersController < ApplicationController
def set_user
@user = User.find(params[:id])
if @user.username
raise ActionController::RoutingError.new('Not Found')
render 'errors/error'
end
end