add credential check to config.js
This commit is contained in:
parent
0c66460bf7
commit
f7a52a27d6
@ -3,6 +3,11 @@ import {request, goToPage, getURIData} from "./utils.js";
|
||||
window.addEventListener("DOMContentLoaded", init);
|
||||
|
||||
async function init () {
|
||||
let cookie = document.cookie;
|
||||
if (cookie === "") {
|
||||
goToPage("login.html");
|
||||
}
|
||||
|
||||
let uriData = getURIData();
|
||||
let node = uriData.node;
|
||||
let type = uriData.type;
|
||||
|
Loading…
Reference in New Issue
Block a user