mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
stop password being clearly visible
This commit is contained in:
parent
0b92fdfc62
commit
b3e55f64a8
3 changed files with 3 additions and 2 deletions
|
@ -202,6 +202,7 @@ function savePassword()
|
||||||
createCookie("password",$("#passwordinput").val(),null,document.location.pathname);
|
createCookie("password",$("#passwordinput").val(),null,document.location.pathname);
|
||||||
//reload
|
//reload
|
||||||
document.location=document.location;
|
document.location=document.location;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handshake()
|
function handshake()
|
||||||
|
|
|
@ -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
|
// 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!
|
// 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
|
//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'){
|
if(navigator.appName=='Microsoft Internet Explorer'){
|
||||||
|
|
|
@ -186,7 +186,7 @@
|
||||||
<div id="editorloadingbox">
|
<div id="editorloadingbox">
|
||||||
<div id="passwordRequired">
|
<div id="passwordRequired">
|
||||||
<p data-l10n-id="pad.passwordRequired">You need a password to access this pad</p>
|
<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'>
|
<input id='passwordinput' type='password' name='password'><input type='submit' value='Submit'>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue