Rate limiting supoprt
This commit is contained in:
parent
dd5a72c082
commit
3389ca6e38
|
@ -109,11 +109,12 @@ signupButton.addEventListener("click", () => {
|
|||
localStorage.setItem("DONOTSHARE-password", await hashwasm.sha512(password))
|
||||
|
||||
window.location.href = "/app/"
|
||||
}
|
||||
else if (response.status === 409) {
|
||||
} else if (response.status === 409) {
|
||||
statusBox.innerText = "Username already taken!"
|
||||
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 {
|
||||
statusBox.innerText = "Something went wrong! (error code: " + response.status + ")"
|
||||
showElements(true)
|
||||
|
@ -125,4 +126,4 @@ signupButton.addEventListener("click", () => {
|
|||
doStuff()
|
||||
});
|
||||
|
||||
// @license-end
|
||||
// @license-end
|
||||
|
|
Reference in New Issue