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
This commit is contained in:
1 parent
628ffb5600
commit
9e9705f1ce
1 file changed
+1
-1
+1
-1
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user