Class: Lcms::Engine::WelcomeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Lcms::Engine::WelcomeController
- 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
#index ⇒ Object
11 |
# File 'app/controllers/lcms/engine/welcome_controller.rb', line 11 def index; end |
#oauth2callback ⇒ Object
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 |