BREAKING CHANGES: (for SeCuRiTy):
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`.
This commit is contained in:
@@ -6,10 +6,10 @@ Connection: Close
|
||||
wtv-noback-all: wtv-register:
|
||||
wtv-expire-all: wtv-`;
|
||||
if (socket.ssid) {
|
||||
if (ssid_sessions[socket.ssid]) {
|
||||
if (ssid_sessions[socket.ssid].data_store) {
|
||||
if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
|
||||
headers += "\nwtv-ticket: " + ssid_sessions[socket.ssid].data_store.wtvsec_login.ticket_b64;
|
||||
if (session_data) {
|
||||
if (session_data.data_store) {
|
||||
if (session_data.data_store.wtvsec_login) {
|
||||
headers += "\nwtv-ticket: " + session_data.data_store.wtvsec_login.ticket_b64;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user