DEV: Deprecate message parameter in auth provider plugin API (#12523)

This has been unused since d2bceff133
This commit is contained in:
David Taylor
2021-03-25 13:23:48 +00:00
committed by GitHub
parent edcb5f77da
commit f637bf1b58
5 changed files with 7 additions and 16 deletions

View File

@@ -8,7 +8,7 @@ class Auth::AuthProvider
end
def self.auth_attributes
[:pretty_name, :title, :message, :frame_width, :frame_height, :authenticator,
[:authenticator, :pretty_name, :title, :message, :frame_width, :frame_height,
:pretty_name_setting, :title_setting, :enabled_setting, :full_screen_login, :full_screen_login_setting,
:custom_url, :background_color, :icon]
end
@@ -32,6 +32,10 @@ class Auth::AuthProvider
Discourse.deprecate("(#{authenticator.name}) full_screen_login is now forced. The full_screen_login_setting parameter can be removed from the auth_provider.")
end
def message=(val)
Discourse.deprecate("(#{authenticator.name}) message is no longer used because all logins are full screen. It should be removed from the auth_provider")
end
def name
authenticator.name
end