app/graphql/gql/types/enum/two_factor_authentication_method_type.rb
# Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
module Gql::Types::Enum
class TwoFactorAuthenticationMethodType < BaseEnum
description 'Possible two factor authentication methods (availability depends on system configuration)'
Auth::TwoFactor.authentication_method_classes.each do |method|
instance = method.new
value instance.method_name, instance.method_name(human: true)
end
end
end