Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 379 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
log({ns: self.class, fn: __method__, measure: true, at: 'login'}, user)
end
end
Something went wrong with that request. Please try again.