mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
remove Google OpenID auth, since Google doesn't support it anymore
This commit is contained in:
@ -27,8 +27,6 @@ class AdminDashboardData
|
||||
gc_checks,
|
||||
sidekiq_check,
|
||||
ram_check,
|
||||
old_google_config_check,
|
||||
both_googles_config_check,
|
||||
google_oauth2_config_check,
|
||||
facebook_config_check,
|
||||
twitter_config_check,
|
||||
@ -103,14 +101,6 @@ class AdminDashboardData
|
||||
I18n.t('dashboard.memory_warning') if MemInfo.new.mem_total and MemInfo.new.mem_total < 1_000_000
|
||||
end
|
||||
|
||||
def old_google_config_check
|
||||
I18n.t('dashboard.enable_google_logins_warning') if SiteSetting.enable_google_logins
|
||||
end
|
||||
|
||||
def both_googles_config_check
|
||||
I18n.t('dashboard.both_googles_warning') if SiteSetting.enable_google_logins && SiteSetting.enable_google_oauth2_logins
|
||||
end
|
||||
|
||||
def google_oauth2_config_check
|
||||
I18n.t('dashboard.google_oauth2_config_warning') if SiteSetting.enable_google_oauth2_logins && (SiteSetting.google_oauth2_client_id.blank? || SiteSetting.google_oauth2_client_secret.blank?)
|
||||
end
|
||||
|
Reference in New Issue
Block a user