diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-06-25 11:17:06 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-06-25 11:17:06 +0300 |
commit | e62459809e6d0c18a41be962d228341e884dff9a (patch) | |
tree | 969ed2f0acb3b939a64858f8cb29000d7d228917 /config/initializers/devise.rb | |
parent | ea1c5d5809c0baca21978ad10d4675a05b6ef116 (diff) |
Don't try to load omniauth if not enabled
Diffstat (limited to 'config/initializers/devise.rb')
-rw-r--r-- | config/initializers/devise.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 362b9cc9a88..d051b699102 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -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 |