mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
when there are no providers do not blow up
This commit is contained in:
parent
fbc28c2d64
commit
4fcba7a6f1
|
@ -35,12 +35,11 @@ module Discourse
|
|||
end
|
||||
|
||||
def self.auth_providers
|
||||
providers = nil
|
||||
providers = []
|
||||
if plugins
|
||||
plugins.each do |p|
|
||||
next unless p.auth_providers
|
||||
p.auth_providers.each do |prov|
|
||||
providers ||= []
|
||||
providers << prov
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user