By default: - `ssid_sessions[socket.ssid]` is now `session_data` - `require` is no longer allowed in user scripts To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
17 lines
491 B
JavaScript
17 lines
491 B
JavaScript
var minisrv_service_file = true;
|
|
|
|
// null is the new demo/flash
|
|
|
|
if (session_data) {
|
|
if (session_data.data_store.wtvsec_login) {
|
|
if (session_data.data_store.wtvsec_login.ticket_store) {
|
|
if (session_data.data_store.wtvsec_login.ticket_store.user_id != null) {
|
|
if (session_data.data_store.wtvsec_login.ticket_store.user_id >= 0)
|
|
session_data.switchUserID(-1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
headers = "400 You are now nullified.";
|