liquid_feedback_frontend
diff app/main/oauth2/session.lua @ 1538:25ea15b4bd5e
Reworked cookie session control, exceptions for API
author | bsw |
---|---|
date | Tue Oct 20 17:48:49 2020 +0200 (2020-10-20) |
parents | 32cc544d5a5b |
children |
line diff
1.1 --- a/app/main/oauth2/session.lua Mon Oct 12 12:19:18 2020 +0200 1.2 +++ b/app/main/oauth2/session.lua Tue Oct 20 17:48:49 2020 +0200 1.3 @@ -8,7 +8,7 @@ 1.4 member_id = json.null 1.5 } 1.6 1.7 -if app.session.member_id then 1.8 +if app.session and app.session.member_id then 1.9 local origin = request.get_header("Origin") 1.10 if origin then 1.11 local system_applications = SystemApplication:by_origin(origin)