Class: Stormpath::Rails::ForgotPassword::NewController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Stormpath::Rails::ForgotPassword::NewController
- Defined in:
- app/controllers/stormpath/rails/forgot_password/new_controller.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/stormpath/rails/forgot_password/new_controller.rb', line 5 def call if stormpath_config.web.id_site.enabled redirect_to(stormpath_id_site_forgot_password_url) elsif organization_unresolved? redirect_to(parent_forgot_password_url) else respond_to do |format| format.json { render nothing: true, status: 404 } format.html { render stormpath_config.web.forgot_password.view } end end end |