initiate_method_configuration.rb 367 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Service::User::TwoFactor::InitiateMethodConfiguration < Service::User::TwoFactor::Base
  3. def execute
  4. if !method_available?
  5. raise Exceptions::UnprocessableEntity, __('The two-factor authentication method is not enabled.')
  6. end
  7. method.initiate_configuration
  8. end
  9. end