forked from Github-Mirrors/canaille
fix: clean the session cookie after logout
This commit is contained in:
parent
7244f900a5
commit
f3bcdafb23
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ def current_user():
|
|||
|
||||
session["user_id"].remove(user_id)
|
||||
|
||||
if "user_id" in session and not session["user_id"]:
|
||||
del session["user_id"]
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue