global

def two_factor_authentication_enabled?

def two_factor_authentication_enabled?
  Rails.application.credentials.active_record_encryption&.primary_key.present?
end