Fixed issue with playeroverlay

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-05 16:18:07 +02:00
parent aa1ca995f0
commit 7f09c1a999
5 changed files with 13 additions and 5 deletions

View File

@@ -314,7 +314,7 @@ var Admin = {
voting: voting, addsongs: addsongs, longsongs: longsongs, frontpage: frontpage, allvideos: allvideos, removeplay: removeplay, adminpass: adminpass, skipping: skipping, shuffling: shuffling, userpass: pass_send, userpass_changed: userpass_changed
};
Crypt.set_userpass(chan.toLowerCase(), CryptoJS.SHA256(userpass).toString());
Crypt.set_userpass(chan.toLowerCase(), CryptoJS.SHA256(userpass).toString());
socket.emit("conf", configs);
},

View File

@@ -494,8 +494,10 @@ function setup_auth_listener() {
socket.on('auth_accepted', function(msg) {
if(msg.hasOwnProperty("value") && msg.value) {
userpass = temp_user_pass;
Crypt.set_userpass(chan.toLowerCase(), userpass);
if(temp_user_pass != "") {
userpass = temp_user_pass;
Crypt.set_userpass(chan.toLowerCase(), userpass);
}
}
});
}