remove unused variable sent_res

This commit is contained in:
Mystikfluu 2022-11-19 17:23:54 +01:00
parent d55de3bf79
commit ae8cf5e10e

View File

@ -725,12 +725,7 @@ router.post("/api/changePW", function (req, res) {
else {
res.json({ "error": "invalid password" });
}
sent_res = true;
});
setTimeout(function () {
if (!sent_res)
res.json({ "error": "timeout" });
}, 3000);
});
router.post("/api/changeUsername", function (req, res) {
res.set("Access-Control-Allow-Origin", "");