Class: Lcms::Engine::WelcomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/lcms/engine/welcome_controller.rb

Constant Summary collapse

OAUTH_REFERER =
'https://accounts.google.com/'
OAUTH_MESSAGE =
'Copy this code and use it to continue authorization'

Instance Method Summary collapse

Instance Method Details

#indexObject



11
# File 'app/controllers/lcms/engine/welcome_controller.rb', line 11

def index; end

#oauth2callbackObject



13
14
15
16
17
# File 'app/controllers/lcms/engine/welcome_controller.rb', line 13

def oauth2callback
  head(:not_found) && return unless request.referer == OAUTH_REFERER

  render json: { text: OAUTH_MESSAGE, code: params[:code] }
end