Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 303 Bytes
class SessionsController < ApplicationController
def login
redirect_to "/auth/github"
end
def logout
log_out_user
redirect_to root_path
end
def create
user = User.authenticate(request.env['omniauth.auth'])
log_in_user(user.id)
redirect_to search_gists_path
end
end
Jump to Line
Something went wrong with that request. Please try again.