Class: Stormpath::Rails::Login::CreateController

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

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/stormpath/rails/login/create_controller.rb', line 7

def call
  begin
    form.save!
    set_cookies if 
    respond_with_success
  rescue Stormpath::Error, LoginForm::FormError, SocialLoginForm::FormError,
         OrganizationForm::FormError, OrganizationResolver::Error => error
    respond_with_error(error)
  end
end