Commit e6245980 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Don't try to load omniauth if not enabled

parent ea1c5d58
......@@ -219,5 +219,7 @@ Devise.setup do |config|
end
end
if Gitlab.config.omniauth.enabled
Gitlab::OmniauthInitializer.new(config).execute(Gitlab.config.omniauth.providers)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment