Class: DeviseInstant2fa::PasswordsController

Inherits:
Devise::PasswordsController
  • Object
show all
Defined in:
app/controllers/devise_instant2fa/passwords_controller.rb

Instance Method Summary collapse

Instance Method Details

#sign_in(resource_or_scope, *args) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/controllers/devise_instant2fa/passwords_controller.rb', line 2

def (resource_or_scope, *args)
  resource = args.last || resource_or_scope

  if resource.respond_to?(:with_instant2fa_verification_url) && resource.with_instant2fa_verification_url

    true
  else
    super
  end
end