Added a try-again for commands with password if there exists an adminass saved

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-28 15:40:55 +01:00
parent 7b66575ea8
commit 2e8ef6739c
5 changed files with 54 additions and 13 deletions

View File

@@ -449,7 +449,7 @@ var Search = {
List.vote(id, "pos");
}
} else {
socket.emit("add", {id: id, start: start, end: end, title: title, adminpass: adminpass == "" ? "" : Crypt.crypt_pass(adminpass), list: chan.toLowerCase(), duration: duration, playlist: playlist, num: num, total: full_num, pass: embed ? '' : Crypt.crypt_pass(Crypt.get_userpass(chan.toLowerCase()))});
emit("add", {id: id, start: start, end: end, title: title, adminpass: adminpass == "" ? "" : Crypt.crypt_pass(adminpass), list: chan.toLowerCase(), duration: duration, playlist: playlist, num: num, total: full_num, pass: embed ? '' : Crypt.crypt_pass(Crypt.get_userpass(chan.toLowerCase()))});
}//[id, decodeURIComponent(title), adminpass, duration, playlist]);
},