liquid_feedback_frontend
annotate app/main/index/_action/logout.lua @ 1349:14a75a6c02c3
Fixed field name part 2
author | bsw |
---|---|
date | Mon Aug 06 13:15:16 2018 +0200 (2018-08-06) |
parents | 32cc544d5a5b |
children |
rev | line source |
---|---|
bsw/jbe@0 | 1 if app.session then |
bsw/jbe@0 | 2 app.session:destroy() |
bsw/jbe@0 | 3 slot.put_into("notice", _"Logout successful") |
bsw@286 | 4 if config.etherpad then |
bsw@286 | 5 request.set_cookie{ |
bsw@286 | 6 path = config.etherpad.cookie_path, |
bsw@286 | 7 name = "sessionID", |
bsw@286 | 8 value = "invalid" |
bsw@286 | 9 } |
bsw@286 | 10 end |
bsw/jbe@0 | 11 end |
bsw/jbe@1309 | 12 |
bsw/jbe@1309 | 13 if config.meta_navigation_logout_url then |
bsw/jbe@1309 | 14 request.redirect{ external = config.meta_navigation_logout_url } |
bsw/jbe@1309 | 15 end |