Class: Stormpath::Rails::Register::CreateController

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

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
11
# File 'app/controllers/stormpath/rails/register/create_controller.rb', line 5

def call
  form.save!
   if valid_for_login?
  respond_with_success
rescue RegistrationForm::FormError, OrganizationForm::FormError => error
  respond_with_error(error)
end