fix null user bug, but also make a page to intentionally trigger it

This commit is contained in:
zefie
2022-02-15 17:48:43 -05:00
parent f32c4b1926
commit 59ba999b5a
4 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
var minisrv_service_file = true;
if (ssid_sessions[socket.ssid]) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id != null) {
if (ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_store.user_id >= 0)
ssid_sessions[socket.ssid].switchUserID(null);
}
}
}
}
headers = "400 You are now nullified.";