mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +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) {
|
||||
try {
|
||||
console.log(id);
|
||||
if(id == "empty" || id == undefined) {
|
||||
callback("", "", false);
|
||||
return;
|
||||
@@ -294,7 +295,7 @@ function getSessionAdminUser(id, list, callback) {
|
||||
var userpass = "";
|
||||
var adminpass = "";
|
||||
if(d.length > 0) {
|
||||
console.log(d);
|
||||
console.log(id, d);
|
||||
if(d[0].hasOwnProperty("chromecast") && d[0].chromecast) {
|
||||
getSessionAdminUser(d[0].id, list, callback);
|
||||
} else {
|
||||
|
||||
@@ -28,6 +28,7 @@ module.exports = function() {
|
||||
} catch(e) {
|
||||
socket.cookie_id = "empty";
|
||||
}
|
||||
console.log("socket.cookie_id at start", socket.cookie_id);
|
||||
socket.zoff_id = socket.id;
|
||||
socket.emit("get_list");
|
||||
|
||||
@@ -95,9 +96,9 @@ module.exports = function() {
|
||||
if(coll.indexOf("?") > -1){
|
||||
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);
|
||||
});
|
||||
});*/
|
||||
socket.cookie_id = msg.guid;
|
||||
guid = msg.guid;
|
||||
socketid = msg.socket_id;
|
||||
|
||||
Reference in New Issue
Block a user