Add logged_in to user session
This commit is contained in:
parent
2680034587
commit
29e26e54d9
1 changed files with 1 additions and 0 deletions
|
@ -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." }
|
||||
|
|
Loading…
Reference in a new issue