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 /src/static | |
parent | 0b92fdfc628656f9d7b562d62733778f144e65d9 (diff) | |
download | etherpad-lite-b3e55f64a86951ddd25243c4b593cf61ec109c4c.zip |
stop password being clearly visible
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/pad.js | 1 | ||||
-rw-r--r-- | src/static/js/pad_utils.js | 2 |
2 files changed, 2 insertions, 1 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'){ |