mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added storing of adminpasswords. Still in cleartext, must be encrypted some way
This commit is contained in:
@@ -49,7 +49,7 @@ socket.on("pw", function(msg)
|
||||
|
||||
refresh_scroll();
|
||||
|
||||
localStorage.setItem("passord_i_klartekst_lol", msg);
|
||||
localStorage.setItem(chan.toLowerCase(), msg);
|
||||
Materialize.toast("Correct password. You now have access to the sacred relam of The Admin.", 4000);
|
||||
});
|
||||
|
||||
|
||||
@@ -114,6 +114,11 @@ $(document).ready(function()
|
||||
firstScriptTag = document.getElementsByTagName('script')[0];
|
||||
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
|
||||
|
||||
if(localStorage[chan.toLowerCase()])
|
||||
{
|
||||
socket.emit("password", localStorage[chan.toLowerCase()]);
|
||||
}
|
||||
|
||||
if($("#chan").html().toLowerCase() == "jazz")
|
||||
{
|
||||
//loadjsfile("static/js/jazzscript.js");
|
||||
|
||||
Reference in New Issue
Block a user