2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-07-26 08:43:50 +00:00
|
|
|
|
|
|
|
class Issue3627OutdatedUrlsSecurityPage < ActiveRecord::Migration[6.0]
|
|
|
|
def change
|
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
|
|
|
|
|
|
|
setting = Setting.find_by name: 'auth_google_oauth2'
|
|
|
|
setting.preferences[:description_i18n][2] = 'https://console.cloud.google.com/apis/credentials'
|
|
|
|
setting.save!
|
|
|
|
|
|
|
|
setting = Setting.find_by name: 'auth_microsoft_office365'
|
|
|
|
setting.preferences[:description_i18n][2] = 'https://portal.azure.com'
|
|
|
|
setting.save!
|
|
|
|
end
|
|
|
|
end
|