From 9e9705f1cee47fbdcca88c5c81a6753c2f2e09d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 26 Apr 2013 22:26:19 +0200 Subject: [PATCH] Follow up to commit b9d467d Forgot to change session key to new Flask-Principal attribute name, which caused issues on logout sometimes (but weirdly not always). Closes #107 --- octoprint/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/server.py b/octoprint/server.py index a89b659..3a6249a 100644 --- a/octoprint/server.py +++ b/octoprint/server.py @@ -600,7 +600,7 @@ def login(): @login_required def logout(): # Remove session keys set by Flask-Principal - for key in ('identity.name', 'identity.auth_type'): + for key in ('identity.id', 'identity.auth_type'): del session[key] identity_changed.send(current_app._get_current_object(), identity=AnonymousIdentity())