diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-05 19:50:22 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-05 19:50:22 -0500 |
| commit | 99c02722dbee8452161c6ff79b4cdd10e64c5666 (patch) | |
| tree | 34e7c397453a7854cdef1e41b056bd6acab4d189 /src | |
| parent | 431fa642bf40cbd1d58fa16a71125e3ed2917425 (diff) | |
| download | invidious-99c02722dbee8452161c6ff79b4cdd10e64c5666.tar.gz invidious-99c02722dbee8452161c6ff79b4cdd10e64c5666.tar.bz2 invidious-99c02722dbee8452161c6ff79b4cdd10e64c5666.zip | |
Remove all cookies on sign out
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 4 |
1 files changed, 1 insertions, 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) |
