mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Fix warnings about already initialized constants
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
class Auth::FacebookAuthenticator < Auth::Authenticator
|
class Auth::FacebookAuthenticator < Auth::Authenticator
|
||||||
|
|
||||||
AVATAR_SIZE = 480
|
AVATAR_SIZE ||= 480
|
||||||
|
|
||||||
def name
|
def name
|
||||||
"facebook"
|
"facebook"
|
||||||
|
@ -211,7 +211,7 @@ module Discourse
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
BUILTIN_AUTH = [
|
BUILTIN_AUTH ||= [
|
||||||
Auth::AuthProvider.new(authenticator: Auth::FacebookAuthenticator.new, frame_width: 580, frame_height: 400),
|
Auth::AuthProvider.new(authenticator: Auth::FacebookAuthenticator.new, frame_width: 580, frame_height: 400),
|
||||||
Auth::AuthProvider.new(authenticator: Auth::GoogleOAuth2Authenticator.new, frame_width: 850, frame_height: 500),
|
Auth::AuthProvider.new(authenticator: Auth::GoogleOAuth2Authenticator.new, frame_width: 850, frame_height: 500),
|
||||||
Auth::AuthProvider.new(authenticator: Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", 'enable_yahoo_logins', trusted: true)),
|
Auth::AuthProvider.new(authenticator: Auth::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", 'enable_yahoo_logins', trusted: true)),
|
||||||
|
Reference in New Issue
Block a user