From 29e26e54d96d5b8a9ad97d736f6408893d670d54 Mon Sep 17 00:00:00 2001 From: James Wang Date: Thu, 24 Dec 2015 20:49:15 -0500 Subject: [PATCH] Add logged_in to user session --- server/api/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/user.py b/server/api/user.py index fd55f97..8723ce5 100644 --- a/server/api/user.py +++ b/server/api/user.py @@ -58,6 +58,7 @@ def user_login(): if utils.check_password(user.password, password): session["username"] = user.username session["admin"] = user.admin + session["logged_in"] = True return { "success": 1, "message": "Success!" } else: return { "success": 0, "message": "Invalid credentials." }