forked from Ailur/burgernotes-server
Fixed loggedin
This commit is contained in:
parent
29df087261
commit
c03c29bce6
6
main
6
main
|
@ -234,8 +234,10 @@ async def apiloggedin():
|
|||
if request.method == "POST":
|
||||
data = await request.get_json()
|
||||
secretKey = data["secretKey"]
|
||||
get_session(secretKey)
|
||||
return 200
|
||||
if get_session(secretKey) != None:
|
||||
return {}, 200
|
||||
else:
|
||||
return {}, 400
|
||||
|
||||
@app.route("/api/listnotes", methods=("GET", "POST"))
|
||||
async def apilistnotes():
|
||||
|
|
Loading…
Reference in New Issue