mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:35:44 +08:00
d2bceff133
Using popups is becoming increasingly rare. Full page redirects are already used on mobile, and for some providers. This commit removes all logic related to popup authentication, leaving only the full page redirect method. For more info, see https://meta.discourse.org/t/do-we-need-popups-for-login/127988
24 lines
579 B
Ruby
24 lines
579 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AuthProviderSerializer < ApplicationSerializer
|
|
|
|
attributes :name, :custom_url, :pretty_name_override, :title_override, :message_override,
|
|
:frame_width, :frame_height, :can_connect, :can_revoke,
|
|
:icon
|
|
|
|
def title_override
|
|
return SiteSetting.get(object.title_setting) if object.title_setting
|
|
object.title
|
|
end
|
|
|
|
def pretty_name_override
|
|
return SiteSetting.get(object.pretty_name_setting) if object.pretty_name_setting
|
|
object.pretty_name
|
|
end
|
|
|
|
def message_override
|
|
object.message
|
|
end
|
|
|
|
end
|