mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Logout
This commit is contained in:
parent
790119235d
commit
68499e3171
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue