mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Remove all cookies on sign out
This commit is contained in:
parent
431fa642bf
commit
99c02722db
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue