Skip to content

Commit

Permalink
fix: clean the session cookie after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Apr 9, 2024
1 parent 7244f90 commit f3bcdaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions canaille/app/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit f3bcdaf

Please sign in to comment.