1 files changed, 8 insertions, 2 deletions
diff --git a/slowcord/login/public/js/handler.js b/slowcord/login/public/js/handler.js
index 4ee7cab2..aabc7a4c 100644
--- a/slowcord/login/public/js/handler.js
+++ b/slowcord/login/public/js/handler.js
@@ -16,8 +16,14 @@ const handleSubmit = async (path, body) => {
return;
}
- const error = json.errors ? Object.values(json.errors)[0]._errors[0].message : json.message;
+ // Very fun error message here lol
+ const error =
+ json.errors
+ ? Object.values(json.errors)[0]._errors[0].message
+ : (
+ json.captcha_key ? "Captcha required" : json.message
+ );
failureMessage.innerHTML = error;
failureMessage.style.display = "block";
-}
\ No newline at end of file
+};
\ No newline at end of file
|