remove unused variable sent_res
This commit is contained in:
parent
d55de3bf79
commit
ae8cf5e10e
@ -725,12 +725,7 @@ router.post("/api/changePW", function (req, res) {
|
|||||||
else {
|
else {
|
||||||
res.json({ "error": "invalid password" });
|
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) {
|
router.post("/api/changeUsername", function (req, res) {
|
||||||
res.set("Access-Control-Allow-Origin", "");
|
res.set("Access-Control-Allow-Origin", "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user