mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:39:42 +08:00
Fix warnings about already initialized constants
This commit is contained in:
parent
2c4d7225d8
commit
6ddf7fcd1f
|
@ -1,6 +1,6 @@
|
|||
class Auth::FacebookAuthenticator < Auth::Authenticator
|
||||
|
||||
AVATAR_SIZE = 480
|
||||
AVATAR_SIZE ||= 480
|
||||
|
||||
def name
|
||||
"facebook"
|
||||
|
|
|
@ -211,7 +211,7 @@ module Discourse
|
|||
end
|
||||
end
|
||||
|
||||
BUILTIN_AUTH = [
|
||||
BUILTIN_AUTH ||= [
|
||||
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::OpenIdAuthenticator.new("yahoo", "https://me.yahoo.com", 'enable_yahoo_logins', trusted: true)),
|
||||
|
|
Loading…
Reference in New Issue
Block a user