mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
when there are no providers do not blow up
This commit is contained in:
parent
fbc28c2d64
commit
4fcba7a6f1
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue