2
0
mirror of https://github.com/codl/forget synced 2025-01-09 14:12:32 +01:00

forgot to also clear the session from flask.g

This commit is contained in:
codl 2017-07-27 14:19:40 +02:00
parent 7c38270223
commit 8409f9c196
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -47,4 +47,5 @@ def logout():
if(g.viewer):
db.session.delete(g.viewer)
db.session.commit()
g.viewer = None
return redirect(url_for('index'))