Class: Stormpath::Rails::Login::NewController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/stormpath/rails/login/new_controller.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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()
  elsif organization_unresolved?
    redirect_to()
  else
    respond_to do |format|
      format.json { render json: LoginNewSerializer.to_h }
      format.html { render stormpath_config.web..view }
    end
  end
end