mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Remove all cookies on sign out
This commit is contained in:
parent
431fa642bf
commit
99c02722db
@ -580,10 +580,8 @@ get "/signout" do |env|
|
|||||||
referer ||= "/"
|
referer ||= "/"
|
||||||
|
|
||||||
env.request.cookies.each do |cookie|
|
env.request.cookies.each do |cookie|
|
||||||
if cookie.name != "darktheme"
|
|
||||||
cookie.expires = Time.new(1990, 1, 1)
|
cookie.expires = Time.new(1990, 1, 1)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
env.request.cookies.add_response_headers(env.response.headers)
|
env.request.cookies.add_response_headers(env.response.headers)
|
||||||
env.redirect referer
|
env.redirect referer
|
||||||
|
Loading…
Reference in New Issue
Block a user