form: fix captcha
wouldn't compile (not sure why i didn't notice) and after fixing, the check was being performed after deleting the invite so would always fail.
This commit is contained in:
+4
-2
@@ -263,7 +263,8 @@ interface sendDTO {
|
||||
discord_contact?: boolean;
|
||||
matrix_pin?: string;
|
||||
matrix_contact?: boolean;
|
||||
captcha?: string;
|
||||
captcha_id?: string;
|
||||
captcha_text?: string;
|
||||
}
|
||||
|
||||
let captchaVerified = false;
|
||||
@@ -338,7 +339,8 @@ const create = (event: SubmitEvent) => {
|
||||
}
|
||||
}
|
||||
if (window.captcha) {
|
||||
send.captcha = captchaInput.value;
|
||||
send.captcha_id = captchaID;
|
||||
send.captcha_text = captchaInput.value;
|
||||
}
|
||||
_post("/newUser", send, (req: XMLHttpRequest) => {
|
||||
if (req.readyState == 4) {
|
||||
|
||||
Reference in New Issue
Block a user