liquid_feedback_frontend
view app/main/index/_action/logout.lua @ 1556:da17dfdc1dd2
Updated default quorum values for new areas
| author | bsw | 
|---|---|
| date | Wed Nov 04 18:51:32 2020 +0100 (2020-11-04) | 
| parents | 32cc544d5a5b | 
| children | 
 line source
     1 if app.session then
     2   app.session:destroy()
     3   slot.put_into("notice", _"Logout successful")
     4   if config.etherpad then
     5     request.set_cookie{
     6       path = config.etherpad.cookie_path,
     7       name = "sessionID",
     8       value = "invalid"
     9     }
    10   end
    11 end
    13 if config.meta_navigation_logout_url then
    14   request.redirect{ external = config.meta_navigation_logout_url }
    15 end
