Module: Devise::Models::FidoUsfAuthenticatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise_fido_usf/models/fido_usf_authenticatable.rb
Instance Method Summary collapse
-
#with_fido_usf_authentication? ⇒ Boolean
Does the user has a registered FIDO U2F device?.
Instance Method Details
#with_fido_usf_authentication? ⇒ Boolean
Does the user has a registered FIDO U2F device?
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 |