mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-28 21:11:01 +00:00
Uncommented a feature
This commit is contained in:
@@ -286,6 +286,7 @@ function setSessionUserPass(id, userpass, list, callback) {
|
|||||||
|
|
||||||
function getSessionAdminUser(id, list, callback) {
|
function getSessionAdminUser(id, list, callback) {
|
||||||
try {
|
try {
|
||||||
|
console.log(id);
|
||||||
if(id == "empty" || id == undefined) {
|
if(id == "empty" || id == undefined) {
|
||||||
callback("", "", false);
|
callback("", "", false);
|
||||||
return;
|
return;
|
||||||
@@ -294,7 +295,7 @@ function getSessionAdminUser(id, list, callback) {
|
|||||||
var userpass = "";
|
var userpass = "";
|
||||||
var adminpass = "";
|
var adminpass = "";
|
||||||
if(d.length > 0) {
|
if(d.length > 0) {
|
||||||
console.log(d);
|
console.log(id, d);
|
||||||
if(d[0].hasOwnProperty("chromecast") && d[0].chromecast) {
|
if(d[0].hasOwnProperty("chromecast") && d[0].chromecast) {
|
||||||
getSessionAdminUser(d[0].id, list, callback);
|
getSessionAdminUser(d[0].id, list, callback);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ module.exports = function() {
|
|||||||
} catch(e) {
|
} catch(e) {
|
||||||
socket.cookie_id = "empty";
|
socket.cookie_id = "empty";
|
||||||
}
|
}
|
||||||
|
console.log("socket.cookie_id at start", socket.cookie_id);
|
||||||
socket.zoff_id = socket.id;
|
socket.zoff_id = socket.id;
|
||||||
socket.emit("get_list");
|
socket.emit("get_list");
|
||||||
|
|
||||||
@@ -95,9 +96,9 @@ module.exports = function() {
|
|||||||
if(coll.indexOf("?") > -1){
|
if(coll.indexOf("?") > -1){
|
||||||
coll = coll.substring(0, coll.indexOf("?"));
|
coll = coll.substring(0, coll.indexOf("?"));
|
||||||
}
|
}
|
||||||
Functions.setChromecastHost(socket.cookie_id, msg.guid, msg.channel, function(results) {
|
/*Functions.setChromecastHost(socket.cookie_id, msg.guid, msg.channel, function(results) {
|
||||||
console.log("setChromecastHost: ", results);
|
console.log("setChromecastHost: ", results);
|
||||||
});
|
});*/
|
||||||
socket.cookie_id = msg.guid;
|
socket.cookie_id = msg.guid;
|
||||||
guid = msg.guid;
|
guid = msg.guid;
|
||||||
socketid = msg.socket_id;
|
socketid = msg.socket_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user