summaryrefslogtreecommitdiff
path: root/lib/omni_auth
diff options
context:
space:
mode:
Diffstat (limited to 'lib/omni_auth')
-rw-r--r--lib/omni_auth/request_forgery_protection.rb6
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