summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-08 14:41:19 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-08 14:58:15 +0100
commit41a4785b855a082197b3c22004cb8af96e5453ee (patch)
tree7c6c06f2f3bc391e49b5f11acfb38474f87e2aa4 /config/initializers
parentf5430e48b42227f1c1874ca27c6907f0f704be28 (diff)
downloadgitlab-ce-41a4785b855a082197b3c22004cb8af96e5453ee.tar.gz
Fix signin with OmniAuth providersfix-omniauth-signin
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/omniauth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb
index 70ed10e8275..4c164119fff 100644
--- a/config/initializers/omniauth.rb
+++ b/config/initializers/omniauth.rb
@@ -16,7 +16,7 @@ OmniAuth.config.allowed_request_methods = [:post]
#In case of auto sign-in, the GET method is used (users don't get to click on a button)
OmniAuth.config.allowed_request_methods << :get if Gitlab.config.omniauth.auto_sign_in_with_provider.present?
OmniAuth.config.before_request_phase do |env|
- OmniAuth::RequestForgeryProtection.new(env).call
+ OmniAuth::RequestForgeryProtection.call(env)
end
if Gitlab.config.omniauth.enabled