make it show password dialog on wrong password

pull/1221/head
John McLear 2012-12-03 12:05:11 +00:00
parent 4843840d72
commit d09894ce77
2 changed files with 12 additions and 1 deletions

View File

@ -315,6 +315,7 @@ function handshake()
{
$('#loading').hide();
$('#wrongPassword').show();
$('#passwordRequired').show();
$("#passwordinput").focus();
}
}

View File

@ -52,7 +52,17 @@ function createCookie(name, value, days, path)
if(!path)
path = "/";
document.cookie = name + "=" + value + expires + "; path=" + path;
if(!path)
path = "/";
//Check if the browser is IE and if so make sure the full path is set in the cookie
if(navigator.appName=='Microsoft Internet Explorer'){
document.cookie = name + "=" + value + expires + "; path="+document.location;
}
else{
document.cookie = name + "=" + value + expires + "; path=" + path;
}
}
function readCookie(name)