liquid_feedback_frontend

changeset 1543:3fac5fd201fe

Create empty session in all cases
author bsw
date Tue Oct 20 18:05:26 2020 +0200 (2020-10-20)
parents 8f354722d754
children a0b791073159
files app/main/_filter/20_session.lua
line diff
     1.1 --- a/app/main/_filter/20_session.lua	Tue Oct 20 18:04:33 2020 +0200
     1.2 +++ b/app/main/_filter/20_session.lua	Tue Oct 20 18:05:26 2020 +0200
     1.3 @@ -47,14 +47,13 @@
     1.4    if cookie then
     1.5      app.session = Session:by_ident(cookie)
     1.6    end
     1.7 +end
     1.8  
     1.9 -  if not app.session then
    1.10 -    app.session = Session:new()
    1.11 -    if not cors_request then
    1.12 -      app.session:set_cookie()
    1.13 -    end
    1.14 +if not app.session then
    1.15 +  app.session = Session:new()
    1.16 +  if not cors_request then
    1.17 +    app.session:set_cookie()
    1.18    end
    1.19 -
    1.20  end
    1.21  
    1.22  locale.set{ lang = app.session and app.session.lang or config.default_lang or "en" }

Impressum / About Us