Fixed password saving bug

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-24 02:21:50 +01:00
parent 670f6732b6
commit 2fc3efdc2b
2 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -51,9 +51,8 @@ var Crypt = {
var CookieDate = new Date;
CookieDate.setFullYear(CookieDate.getFullYear( ) +1);
if(cookie != "_opt") add = chan.toLowerCase();
if(cookie != "_opt") add = chan.toLowerCase()+";";
else add = ";"
console.log(add);
document.cookie = cookie+"="+encrypted.toString()+";expires="+CookieDate.toGMTString()+";path=/"+add
},
@@ -96,7 +95,7 @@ var Crypt = {
set_pass: function(chan, pass){
conf_pass.passwords[chan] = pass;
Crypt.encrypt(conf_pass);
Crypt.encrypt(conf_pass, chan);
},
remove_pass:function(chan){