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":
|
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():
|
||||||
|
|
Loading…
Reference in New Issue