password.rb 545 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Zendesk::User::Password < Sequencer::Unit::Common::Provider::Named
  3. uses :initiator
  4. private
  5. def password
  6. # set the used import key as the admin password
  7. # since we have no other confidential value
  8. # that is known to Zammad and the User
  9. return Setting.get('import_zendesk_endpoint_key') if initiator
  10. # otherwise set an empty password so the user
  11. # has to re-set a new password for Zammad
  12. ''
  13. end
  14. end