Rate limiting supoprt

This commit is contained in:
Tracker-Friendly 2024-07-13 17:32:59 +01:00
parent dd5a72c082
commit 3389ca6e38
1 changed files with 5 additions and 4 deletions

View File

@ -109,11 +109,12 @@ signupButton.addEventListener("click", () => {
localStorage.setItem("DONOTSHARE-password", await hashwasm.sha512(password)) localStorage.setItem("DONOTSHARE-password", await hashwasm.sha512(password))
window.location.href = "/app/" window.location.href = "/app/"
} } else if (response.status === 409) {
else if (response.status === 409) {
statusBox.innerText = "Username already taken!" statusBox.innerText = "Username already taken!"
showElements(true) showElements(true)
} } 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 { else {
statusBox.innerText = "Something went wrong! (error code: " + response.status + ")" statusBox.innerText = "Something went wrong! (error code: " + response.status + ")"
showElements(true) showElements(true)