Class: Stormpath::Rails::VerifyEmail::CreateController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/stormpath/rails/verify_email/create_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/verify_email/create_controller.rb', line 5

def call
  begin
    ResendEmailVerification.new(params[:email]).call
    respond_with_success
  rescue ResendEmailVerification::UnexistingEmailError
    respond_with_success
  rescue ResendEmailVerification::NoEmailError => error
    respond_with_error(error)
  end
end