fix null user bug, but also make a page to intentionally trigger it
This commit is contained in:
14
zefie_wtvp_minisrv/ServiceVault/wtv-tricks/nullify-me.js
Normal file
14
zefie_wtvp_minisrv/ServiceVault/wtv-tricks/nullify-me.js
Normal 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.";
|
||||
Reference in New Issue
Block a user