Redirect to login after applied configs
This commit is contained in:
@@ -405,6 +405,17 @@
|
|||||||
}, 5000);
|
}, 5000);
|
||||||
fetch("/api/restart", {
|
fetch("/api/restart", {
|
||||||
method: "POST"
|
method: "POST"
|
||||||
|
})
|
||||||
|
.then((resp) => {
|
||||||
|
if (resp.status !== 200) {
|
||||||
|
location.href = './login'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
location.href = './login'
|
||||||
|
console.error(e)
|
||||||
|
return
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user