diff options
author | John McLear <john@mclear.co.uk> | 2012-12-03 13:10:32 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2012-12-03 13:10:32 +0000 |
commit | b3e55f64a86951ddd25243c4b593cf61ec109c4c (patch) | |
tree | 10cdcad765d35f17860b3cfbb5c53c544d337770 | |
parent | 0b92fdfc628656f9d7b562d62733778f144e65d9 (diff) | |
download | etherpad-lite-b3e55f64a86951ddd25243c4b593cf61ec109c4c.zip |
stop password being clearly visible
-rw-r--r-- | src/static/js/pad.js | 1 | ||||
-rw-r--r-- | src/static/js/pad_utils.js | 2 | ||||
-rw-r--r-- | src/templates/pad.html | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/pad.js b/src/static/js/pad.js index d380a8dc..cace9bf7 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -202,6 +202,7 @@ function savePassword() createCookie("password",$("#passwordinput").val(),null,document.location.pathname); //reload document.location=document.location; + return false; } function handshake() diff --git a/src/static/js/pad_utils.js b/src/static/js/pad_utils.js index 59c3d419..7c97b035 100644 --- a/src/static/js/pad_utils.js +++ b/src/static/js/pad_utils.js @@ -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'){ diff --git a/src/templates/pad.html b/src/templates/pad.html index 896a62f6..a392980a 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -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> |