Fixed error where password isn't valid on change

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-29 12:05:02 +01:00
parent 7bc4546ca5
commit 97e7dfd7c4
3 changed files with 3 additions and 6 deletions

View File

@@ -75,9 +75,6 @@ db.on('error',function(err) {
}); });
io.on('connection', function(socket){ io.on('connection', function(socket){
console.log("connections");
socket.emit("get_list"); socket.emit("get_list");
var guid = hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]); var guid = hash_pass(socket.handshake.headers["user-agent"] + socket.handshake.address + socket.handshake.headers["accept-language"]);

File diff suppressed because one or more lines are too long

View File

@@ -61,7 +61,7 @@ var Admin = {
socket.on("pw", function(msg) socket.on("pw", function(msg)
{ {
w_p = false; w_p = false;
adminpass = msg; adminpass = Crypt.decrypt_pass(msg);
names = ["vote","addsongs","longsongs","frontpage", "allvideos", names = ["vote","addsongs","longsongs","frontpage", "allvideos",
"removeplay", "skip", "shuffle"]; "removeplay", "skip", "shuffle"];