mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Allow auth providers to provide custom urls
This commit is contained in:
parent
180c972b58
commit
c423ce6333
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ class Plugin::AuthProvider
|
|||
|
||||
def self.auth_attributes
|
||||
[:glyph, :background_color, :title, :message, :frame_width, :frame_height, :authenticator,
|
||||
:title_setting, :enabled_setting, :full_screen_login]
|
||||
:title_setting, :enabled_setting, :full_screen_login, :custom_url]
|
||||
end
|
||||
|
||||
attr_accessor(*auth_attributes)
|
||||
|
@ -13,6 +13,7 @@ class Plugin::AuthProvider
|
|||
|
||||
def to_json
|
||||
result = {name: name}
|
||||
result['customUrl'] = custom_url if custom_url
|
||||
result['titleOverride'] = title if title
|
||||
result['titleSetting'] = title_setting if title_setting
|
||||
result['enabledSetting'] = enabled_setting if enabled_setting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue