From 28dee89c6c96df0fefa01a0f9c754a4f2b22b6f7 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Fri, 3 Nov 2023 20:30:32 +0000 Subject: [PATCH] Fixed signup --- main | 2 -- static/js/signup.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/main b/main index 009953e..8094c68 100644 --- a/main +++ b/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"] diff --git a/static/js/signup.js b/static/js/signup.js index 7f0049e..a1c7e00 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -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) } }