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
master
Gina Häußge 2013-04-26 22:26:19 +02:00
parent 628ffb5600
commit 9e9705f1ce
1 changed files with 1 additions and 1 deletions

View File

@ -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())