Class: Stormpath::Rails::Login::NewController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Stormpath::Rails::Login::NewController
- Defined in:
- app/controllers/stormpath/rails/login/new_controller.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/stormpath/rails/login/new_controller.rb', line 7 def call if stormpath_config.web.id_site.enabled redirect_to(stormpath_id_site_login_url) elsif organization_unresolved? redirect_to(parent_login_url) else respond_to do |format| format.json { render json: LoginNewSerializer.to_h } format.html { render stormpath_config.web.login.view } end end end |