You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
351 B
20 lines
351 B
class Oauth::BaseController < ActionController::Base
|
|
include RenderHelper
|
|
include LoginHelper
|
|
|
|
skip_before_action :verify_authenticity_token
|
|
|
|
private
|
|
|
|
def session_user_id
|
|
session[:user_id]
|
|
end
|
|
|
|
def current_user
|
|
@_current_user ||= User.find_by(id: session_user_id)
|
|
end
|
|
|
|
def auth_hash
|
|
request.env['omniauth.auth']
|
|
end
|
|
end |