Module: Devise::Models::FidoUsfAuthenticatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/devise_fido_usf/models/fido_usf_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#with_fido_usf_authentication?Boolean

Does the user has a registered FIDO U2F device?

Returns:

  • (Boolean)


9
10
11
# File 'lib/devise_fido_usf/models/fido_usf_authenticatable.rb', line 9

def with_fido_usf_authentication?
  FidoUsf::FidoUsfDevice.where(user: self).count > 0
end