From b4298dbdbb417f7c0cadd1470e73ee2a6e98aaa2 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Sun, 21 Jul 2024 09:53:52 +0100 Subject: [PATCH] Added an error message for the PoW being spent --- static/js/signup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/signup.js b/static/js/signup.js index 868c5da..bedbcd1 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -156,6 +156,9 @@ signupButton.addEventListener("click", () => { } else if (response.status === 429) { statusBox.innerText = "Please don't sign up to new accounts that quickly. If you are using a VPN, please turn it off!" showElements(true) + } else if (response.status === 409) { + statusBox.innerText = "Pure bad luck... your PoW challenge was accepted, but someone else used the same PoW challenge as you. Please try again. (error: " + responseData["error"] + ")" + showElements(true) } else if (response.status === 500) { statusBox.innerText = responseData["error"] showElements(true)