form: fix captcha, matrix, telegram

new issue though: discord/telegram/matrix aren't linked when email
confirmation is used!
This commit is contained in:
Harvey Tindall
2023-06-21 20:00:48 +01:00
parent e4a7172517
commit ebacfd43be
5 changed files with 33 additions and 42 deletions
+2 -2
View File
@@ -243,7 +243,7 @@ export class Matrix {
this._input.value = "";
});
private _verifyCode = () => _post(this._conf.verifiedURL + this._userID + "/" + this._input.value, null, (req: XMLHttpRequest) => {
private _verifyCode = () => _get(this._conf.verifiedURL + this._userID + "/" + this._input.value, null, (req: XMLHttpRequest) => {
if (req.readyState != 4) return;
removeLoader(this._submit);
const valid = req.response["success"] as boolean;
@@ -264,6 +264,6 @@ export class Matrix {
this._submit.classList.remove("~critical");
}, 800);
}
}, true);
});
}