fix bug in login endpoint

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-05-15 22:11:24 +00:00
parent 9f7b62cdff
commit d6cd844379

View File

@ -43,7 +43,7 @@ app.post("/api/proxmox/*", async (req, res) => { // proxy endpoint for POST prox
app.post("/api/ticket", async (req, res) => { app.post("/api/ticket", async (req, res) => {
let response = await requestPVE("/access/ticket", "POST", null, JSON.stringify(req.body)); let response = await requestPVE("/access/ticket", "POST", null, JSON.stringify(req.body));
if (!response.ok) { if (!(response.status === 200)) {
res.status(response.status).send({auth: false}); res.status(response.status).send({auth: false});
res.end(); res.end();
return; return;