From 99c02722dbee8452161c6ff79b4cdd10e64c5666 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 5 Jul 2018 19:50:22 -0500 Subject: [PATCH] Remove all cookies on sign out --- src/invidious.cr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 44c0c2d2..6fcf39ca 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -580,9 +580,7 @@ get "/signout" do |env| referer ||= "/" env.request.cookies.each do |cookie| - if cookie.name != "darktheme" - cookie.expires = Time.new(1990, 1, 1) - end + cookie.expires = Time.new(1990, 1, 1) end env.request.cookies.add_response_headers(env.response.headers)