Fixed signup
This commit is contained in:
parent
071aef2ad1
commit
28dee89c6c
2
main
2
main
|
@ -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"]
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue