🐛 "remember" does not need to be set on session

Be able to deal with that.

Follow up to #3370
This commit is contained in:
Gina Häußge committed 2019-12-09 19:06:51 +01:00
1 parent b9bab0577b
commit 78bd3b1a52
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ def _clear_identity(sender):
@session_protected.connect_via(app)
def on_session_protected(sender):
# session was deleted by session protection, that means the user is no more and we need to clear our identity
if session["remember"] == "clear":
if session.get("remember", None) == "clear":
_clear_identity(sender)