add missing valid pve token check to checkAuth
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ export default class PVE extends PVE_BACKEND {
|
||||
async handleResponse (node, result, res) {
|
||||
const waitFor = delay => new Promise(resolve => setTimeout(resolve, delay));
|
||||
if (result.status !== 200) {
|
||||
res.status(result.status).send({error: result.statusText});
|
||||
res.status(result.status).send({ error: result.statusText });
|
||||
res.end();
|
||||
}
|
||||
else if (result.data.data && typeof (result.data.data) === "string" && result.data.data.startsWith("UPID:")) {
|
||||
|
||||
Reference in New Issue
Block a user