Fixed signup

This commit is contained in:
Tracker-Friendly 2023-11-03 20:30:32 +00:00
parent 071aef2ad1
commit 28dee89c6c
2 changed files with 1 additions and 3 deletions

2
main
View File

@ -122,8 +122,6 @@ def privacy():
@app.route("/api/signup", methods=("GET", "POST")) @app.route("/api/signup", methods=("GET", "POST"))
def apisignup(): def apisignup():
if request.method == "POST": if request.method == "POST":
return {}, 500
data = request.get_json() data = request.get_json()
username = data["username"] username = data["username"]
password = data["password"] password = data["password"]

View File

@ -92,7 +92,7 @@ signupButton.addEventListener("click", (event) => {
showElements(true) showElements(true)
} }
else { else {
statusBox.innerText = "Something went wrong! (error code: " + respStatus + ")" statusBox.innerText = "Something went wrong!"
showElements(true) showElements(true)
} }
} }