Files
greenlight/app/controllers/sessions_controller.rb
2018-05-07 16:06:01 -04:00

23 lines
309 B
Ruby

class SessionsController < ApplicationController
# GET /login
def new
end
# GET /logout
def destroy
logout
end
# GET/POST /auth/:provider/callback
def create
user = User.from_omniauth(request.env['omniauth.auth'])
login(user)
end
# POST /auth/failure
def fail
end
end