mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont set cookie for index if not logged in
This commit is contained in:
parent
51ef1c3b2c
commit
9479ca05d0
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -105,7 +105,7 @@ before do
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
if @api
|
if @api || (!signed_in? && request.path == '/')
|
||||||
request.session_options[:skip] = true
|
request.session_options[:skip] = true
|
||||||
else
|
else
|
||||||
# Set issue timestamp on session cookie if it doesn't exist yet
|
# Set issue timestamp on session cookie if it doesn't exist yet
|
||||||
|
|
Loading…
Add table
Reference in a new issue