Added an error message for the PoW being spent

This commit is contained in:
Tracker-Friendly 2024-07-21 09:53:52 +01:00
parent 60b58143e7
commit b4298dbdbb
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ signupButton.addEventListener("click", () => {
} else if (response.status === 429) { } 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!" statusBox.innerText = "Please don't sign up to new accounts that quickly. If you are using a VPN, please turn it off!"
showElements(true) 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) { } else if (response.status === 500) {
statusBox.innerText = responseData["error"] statusBox.innerText = responseData["error"]
showElements(true) showElements(true)