Class: Stormpath::Rails::ChangePassword::NewController

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

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
# File 'app/controllers/stormpath/rails/change_password/new_controller.rb', line 5

def call
  verify_sptoken
  respond_with_success
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