提交 b17f36f0 编写于 作者: D Douwe Maan

Add reset_session for the :reset_session strategy.

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册