forked from External/greenlight
initial commit
This commit is contained in:
22
app/controllers/sessions_controller.rb
Normal file
22
app/controllers/sessions_controller.rb
Normal file
@ -0,0 +1,22 @@
|
||||
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
|
Reference in New Issue
Block a user