20210726065124_issue_3627_outdated_urls_security_page.rb 561 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3627OutdatedUrlsSecurityPage < ActiveRecord::Migration[6.0]
  3. def change
  4. return if !Setting.exists?(name: 'system_init_done')
  5. setting = Setting.find_by name: 'auth_google_oauth2'
  6. setting.preferences[:description_i18n][2] = 'https://console.cloud.google.com/apis/credentials'
  7. setting.save!
  8. setting = Setting.find_by name: 'auth_microsoft_office365'
  9. setting.preferences[:description_i18n][2] = 'https://portal.azure.com'
  10. setting.save!
  11. end
  12. end