stop password being clearly visible

pull/1221/head
John McLear 2012-12-03 13:10:32 +00:00
parent 0b92fdfc62
commit b3e55f64a8
3 changed files with 3 additions and 2 deletions

View File

@ -202,6 +202,7 @@ function savePassword()
createCookie("password",$("#passwordinput").val(),null,document.location.pathname);
//reload
document.location=document.location;
return false;
}
function handshake()

View File

@ -54,7 +54,7 @@ function createCookie(name, value, days, path)
// This fixes an issue with IE not wanting to store cookies for Auth #1234. It's a temp fix because
// Really we should be storing the cookie on teh document.location path and not modifying the fsking URL to contain a password!
document.cookie = name + "=" + value + expires + "; path=" + "/";
// document.cookie = name + "=" + value + expires + "; 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'){

View File

@ -186,7 +186,7 @@
<div id="editorloadingbox">
<div id="passwordRequired">
<p data-l10n-id="pad.passwordRequired">You need a password to access this pad</p>
<form class='passForm'>
<form class='passForm' method='POST'>
<input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'>
</form>
</div>