From d6cd844379f29dbecdcf1e49d3d8db8537f51cf9 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 15 May 2023 22:11:24 +0000 Subject: [PATCH] fix bug in login endpoint Signed-off-by: Arthur Lu --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index fa6727e..772c285 100644 --- a/main.js +++ b/main.js @@ -43,7 +43,7 @@ app.post("/api/proxmox/*", async (req, res) => { // proxy endpoint for POST prox app.post("/api/ticket", async (req, res) => { 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.end(); return;