Class: Stormpath::Rails::ChangePassword::CreateController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Stormpath::Rails::ChangePassword::CreateController
- Defined in:
- app/controllers/stormpath/rails/change_password/create_controller.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/stormpath/rails/change_password/create_controller.rb', line 5 def call password_change.call respond_with_success rescue Stormpath::Error => error respond_to_stormpath_error(error) rescue InvalidSptokenError => error respond_with_error(error, stormpath_config.web.change_password.error_uri) rescue NoSptokenError => error respond_with_error(error, stormpath_config.web.forgot_password.uri) end |