Sha256: 4ad2cd24cde2ae712dddc06c52249892bf497332b1d26f385dff9c194af1270b

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

class DeviseAuthy::PasswordsController < Devise::PasswordsController
  def sign_in(resource_or_scope, *args)
    resource = args.last || resource_or_scope

    if resource.with_authy_authentication?(request)
      # Do nothing. Because we need verify the 2FA
      true
    else
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-authy-1.5.3 app/controllers/devise_authy/passwords_controller.rb
devise-authy-1.5.2 app/controllers/devise_authy/passwords_controller.rb