forked from Ailur/burgernotes-server
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"))
|
||||
def apisignup():
|
||||
if request.method == "POST":
|
||||
return {}, 500
|
||||
|
||||
data = request.get_json()
|
||||
username = data["username"]
|
||||
password = data["password"]
|
||||
|
|
|
@ -92,7 +92,7 @@ signupButton.addEventListener("click", (event) => {
|
|||
showElements(true)
|
||||
}
|
||||
else {
|
||||
statusBox.innerText = "Something went wrong! (error code: " + respStatus + ")"
|
||||
statusBox.innerText = "Something went wrong!"
|
||||
showElements(true)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue