Class: ActionAuth::User

Inherits:
ApplicationRecord show all
Defined in:
app/models/action_auth/user.rb

Instance Method Summary collapse

Instance Method Details

#second_factor_enabled?Boolean

Returns:

  • (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