提交 cb3181e8 编写于 作者: S Santiago Pastorino

Avoid Rack security warning no secret provided

This avoids "SECURITY WARNING: No secret option provided to Rack::Session::Cookie."
上级 fa3f51f7
......@@ -21,6 +21,8 @@ def initialize(const_error)
module Compatibility
def initialize(app, options = {})
options[:key] ||= '_session_id'
# FIXME Rack's secret is not being used
options[:secret] ||= SecureRandom.hex(30)
super
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册