Fixed loggedin

This commit is contained in:
Tracker-Friendly 2024-05-24 19:49:04 +01:00
parent 29df087261
commit c03c29bce6
1 changed files with 4 additions and 2 deletions

6
main
View File

@ -234,8 +234,10 @@ async def apiloggedin():
if request.method == "POST": if request.method == "POST":
data = await request.get_json() data = await request.get_json()
secretKey = data["secretKey"] secretKey = data["secretKey"]
get_session(secretKey) if get_session(secretKey) != None:
return 200 return {}, 200
else:
return {}, 400
@app.route("/api/listnotes", methods=("GET", "POST")) @app.route("/api/listnotes", methods=("GET", "POST"))
async def apilistnotes(): async def apilistnotes():