diff --git a/ffmap/web/application.py b/ffmap/web/application.py index 0f956f9..f9bddab 100755 --- a/ffmap/web/application.py +++ b/ffmap/web/application.py @@ -340,6 +340,8 @@ def user_info(nickname): mysql.commit() flash("User %s deleted!" % nickname, "success") mysql.close() + if user["nickname"] == session.get("user"): + session.pop('user', None) return redirect(url_for("user_list")) else: flash("You are not authorized to perform this action!", "danger")