flag a session when showing the bad disk page
This commit is contained in:
@@ -779,7 +779,7 @@ async function processURL(socket, request_headers, pc_services = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ssid_sessions[socket.ssid].get("wtv-my-disk-sucks-sucks-sucks")) {
|
if (ssid_sessions[socket.ssid].get("wtv-my-disk-sucks-sucks-sucks") && !ssid_sessions[socket.ssid].get("bad_disk_shown") {
|
||||||
if (!ssid_sessions[socket.ssid].baddisk) {
|
if (!ssid_sessions[socket.ssid].baddisk) {
|
||||||
// psuedo lockdown, will unlock on the disk warning page, but prevents minisrv access until they read the error
|
// psuedo lockdown, will unlock on the disk warning page, but prevents minisrv access until they read the error
|
||||||
ssid_sessions[socket.ssid].lockdown = true;
|
ssid_sessions[socket.ssid].lockdown = true;
|
||||||
|
|||||||
@@ -2,8 +2,7 @@ var minisrv_service_file = true;
|
|||||||
|
|
||||||
// remove restrictions once this page is shown, since the user will be 'trapped' anyway
|
// remove restrictions once this page is shown, since the user will be 'trapped' anyway
|
||||||
session_data.disableLockdown();
|
session_data.disableLockdown();
|
||||||
session_data.delete("wtv-my-disk-sucks-sucks-sucks");
|
ssid_sessions[socket.ssid].set("bad_disk_shown", true)
|
||||||
session_data.baddisk = false;
|
|
||||||
|
|
||||||
headers = `200 OK
|
headers = `200 OK
|
||||||
Content-type: text/html`;
|
Content-type: text/html`;
|
||||||
|
|||||||
Reference in New Issue
Block a user