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." }