Class: Stormpath::Rails::VerifyEmail::ShowController

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  begin
     = VerifyEmailToken.new(params[:sptoken]).call
    () if stormpath_config.web.register.
    respond_with_success
  rescue InvalidSptokenError, NoSptokenError => error
    respond_to_error(error)
  end
end