Class: ActionAuth::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActionAuth::User
- Defined in:
- app/models/action_auth/user.rb
Instance Method Summary collapse
Instance Method Details
#second_factor_enabled? ⇒ Boolean
48 49 50 51 |
# File 'app/models/action_auth/user.rb', line 48 def second_factor_enabled? return false unless ActionAuth.configuration.webauthn_enabled? webauthn_credentials.any? end |