Class: Stormpath::Rails::ForgotPassword::NewController

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  if 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