create separate page for login

This commit is contained in:
Zachary Chai
2017-01-19 19:08:59 -05:00
parent ceeafa3208
commit 3039bd168b
10 changed files with 48 additions and 10 deletions

View File

@ -15,6 +15,10 @@
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
class SessionsController < ApplicationController
def new
end
def create
@user = User.from_omniauth(request.env['omniauth.auth'])
session[:user_id] = @user.id