Commit b17f36f0 authored by Douwe Maan's avatar Douwe Maan

Add reset_session for the :reset_session strategy.

parent 571ba5a7
# Protects OmniAuth request phase against CSRF. # Protects OmniAuth request phase against CSRF.
module OmniAuth module OmniAuth
# Based from ActionController::RequestForgeryProtection. # Based on ActionController::RequestForgeryProtection.
class RequestForgeryProtection class RequestForgeryProtection
def initialize(env) def initialize(env)
@env = env @env = env
...@@ -15,6 +15,10 @@ module OmniAuth ...@@ -15,6 +15,10 @@ module OmniAuth
request.session request.session
end end
def reset_session
request.reset_session
end
def params def params
request.params request.params
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment