mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Remove deprecated AuthProvider attributes (#31443)
A number of attributes on AuthProvider are deprecated for and were marked for removal in 2.9.0. This PR removes them.
This commit is contained in:
@ -12,49 +12,17 @@ class Auth::AuthProvider
|
|||||||
authenticator
|
authenticator
|
||||||
pretty_name
|
pretty_name
|
||||||
title
|
title
|
||||||
message
|
|
||||||
frame_width
|
frame_width
|
||||||
frame_height
|
frame_height
|
||||||
pretty_name_setting
|
pretty_name_setting
|
||||||
title_setting
|
title_setting
|
||||||
full_screen_login
|
|
||||||
full_screen_login_setting
|
|
||||||
custom_url
|
custom_url
|
||||||
background_color
|
|
||||||
icon
|
icon
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_accessor(*auth_attributes)
|
attr_accessor(*auth_attributes)
|
||||||
|
|
||||||
def background_color=(val)
|
|
||||||
Discourse.deprecate(
|
|
||||||
"(#{authenticator.name}) background_color is no longer functional. Please use CSS instead",
|
|
||||||
drop_from: "2.9.0",
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
def full_screen_login=(val)
|
|
||||||
Discourse.deprecate(
|
|
||||||
"(#{authenticator.name}) full_screen_login is now forced. The full_screen_login parameter can be removed from the auth_provider.",
|
|
||||||
drop_from: "2.9.0",
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
def full_screen_login_setting=(val)
|
|
||||||
Discourse.deprecate(
|
|
||||||
"(#{authenticator.name}) full_screen_login is now forced. The full_screen_login_setting parameter can be removed from the auth_provider.",
|
|
||||||
drop_from: "2.9.0",
|
|
||||||
)
|
|
||||||
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",
|
|
||||||
drop_from: "2.9.0",
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
def name
|
def name
|
||||||
authenticator.name
|
authenticator.name
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user