Don't try to load omniauth if not enabled
This commit is contained in:
parent
ea1c5d5809
commit
e62459809e
|
@ -219,5 +219,7 @@ Devise.setup do |config|
|
|||
end
|
||||
end
|
||||
|
||||
Gitlab::OmniauthInitializer.new(config).execute(Gitlab.config.omniauth.providers)
|
||||
if Gitlab.config.omniauth.enabled
|
||||
Gitlab::OmniauthInitializer.new(config).execute(Gitlab.config.omniauth.providers)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue