[fix] Logout

This commit is contained in:
Kload 2014-04-17 10:46:01 +02:00
parent 790119235d
commit 68499e3171

View file

@ -553,7 +553,7 @@ function do_logout()
local args = ngx.req.get_uri_args() local args = ngx.req.get_uri_args()
if is_logged_in() then if is_logged_in() then
cache:delete("session_"..ngx.var.cookie_SSOwAuthUser) cache:delete("session_"..ngx.var.cookie_SSOwAuthUser)
cache:delete(user.."-uid") -- Ugly trick to reload cache cache:delete(ngx.var.cookie_SSOwAuthUser.."-uid") -- Ugly trick to reload cache
flash("info", "Logged out") flash("info", "Logged out")
return redirect(portal_url) return redirect(portal_url)
end end