work on tests

This commit is contained in:
Josh
2018-05-10 15:03:59 -04:00
parent 5347d902c0
commit b452932767
12 changed files with 165 additions and 127 deletions

View File

@ -7,6 +7,7 @@ class SessionsController < ApplicationController
# GET /logout
def destroy
logout if current_user
head :no_content
end
# POST /login
@ -22,7 +23,7 @@ class SessionsController < ApplicationController
end
# GET/POST /auth/:provider/callback
def omniauth_session
def omniauth
user = User.from_omniauth(request.env['omniauth.auth'])
login(user)
end