diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-24 20:10:32 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 20:10:32 +0200 |
commit | b17f36f040a18ff6700881c56607ba6df436f652 (patch) | |
tree | 81679df10451b9a24f4b72c5a478018c5fe2a5e6 /lib/omni_auth | |
parent | 571ba5a7feb870b7aa711d5a6fc6d4d53d92a4c5 (diff) | |
download | gitlab-ce-b17f36f040a18ff6700881c56607ba6df436f652.tar.gz |
Add reset_session for the :reset_session strategy.
Diffstat (limited to 'lib/omni_auth')
-rw-r--r-- | lib/omni_auth/request_forgery_protection.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/omni_auth/request_forgery_protection.rb b/lib/omni_auth/request_forgery_protection.rb index cbbb686473c..3557522d3c9 100644 --- a/lib/omni_auth/request_forgery_protection.rb +++ b/lib/omni_auth/request_forgery_protection.rb @@ -1,7 +1,7 @@ # Protects OmniAuth request phase against CSRF. module OmniAuth - # Based from ActionController::RequestForgeryProtection. + # Based on ActionController::RequestForgeryProtection. class RequestForgeryProtection def initialize(env) @env = env @@ -15,6 +15,10 @@ module OmniAuth request.session end + def reset_session + request.reset_session + end + def params request.params end |