Remove all cookies on sign out

This commit is contained in:
Omar Roth 2018-07-05 19:50:22 -05:00
parent 431fa642bf
commit 99c02722db

View File

@ -580,10 +580,8 @@ get "/signout" do |env|
referer ||= "/"
env.request.cookies.each do |cookie|
if cookie.name != "darktheme"
cookie.expires = Time.new(1990, 1, 1)
end
end
env.request.cookies.add_response_headers(env.response.headers)
env.redirect referer