summaryrefslogtreecommitdiff
path: root/config/initializers/omniauth.rb
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-22 16:19:14 +1100
committerDouwe Maan <douwe@selenight.nl>2017-07-26 11:05:44 +0200
commitcc3a82bc8bf0af9a8b7deb1b289aee621c91f7da (patch)
tree20be7c1dcb0951b6b38c0a4eaca4cd27debc2f14 /config/initializers/omniauth.rb
parent8ce8b21f675709c884148d050663b9f2374cdc61 (diff)
downloadgitlab-ce-cc3a82bc8bf0af9a8b7deb1b289aee621c91f7da.tar.gz
Add `rescue false`.
Diffstat (limited to 'config/initializers/omniauth.rb')
-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 24ff3b924b5..a36e59c941a 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|
- GitLab::RequestForgeryProtection.call(env)
+ Gitlab::RequestForgeryProtection.call(env)
end
if Gitlab.config.omniauth.enabled