fixed a bug that was deleting the messages

This commit is contained in:
Rodney Ewing
2013-06-04 11:26:34 -07:00
parent 1bce0c15ba
commit 8ce8faaf5d
2 changed files with 6 additions and 5 deletions

View File

@@ -202,6 +202,7 @@ def check_auth_enabled():
def no_auth_logout(request):
"""Log out the user if in no_auth mode"""
if not mg_globals.app.auth:
request.session.delete()
"""Log out the user if in no_auth mode, but don't delete the messages"""
if not mg_globals.app.auth and 'user_id' in request.session:
del request.session['user_id']
request.session.save()