Skip to content

Commit

Permalink
passwords are no longer insecure when we have sessionStorage: the "in…
Browse files Browse the repository at this point in the history
…secure" flag only refers to "xor" password auth in this case

git-svn-id: https://xpra.org/svn/Xpra/trunk@15478 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 1, 2017
1 parent 5335069 commit e506354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/html5/connect.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ <h4 class="panel-title">Advanced options</h4>
$('input#password').prop("disabled", true);
var insecure_input = document.getElementById("insecure");
insecure_input.onchange = function() {
$('input#password').prop("disabled", !insecure_input.checked);
$('input#password').prop("disabled", !insecure_input.checked && typeof(Storage)==="undefined");
};
}

Expand Down Expand Up @@ -490,7 +490,7 @@ <h4 class="panel-title">Advanced options</h4>
var def = default_on.indexOf(prop)>=0;
document.getElementById(prop).checked = getboolparam(prop, def);
}
$('input#password').prop("disabled", !insecure_input.checked);
$('input#password').prop("disabled", !insecure_input.checked && typeof(Storage)==="undefined");

$("#expandopts").click(function() {
$("#hiddenopts").slideToggle();
Expand Down

0 comments on commit e506354

Please sign in to comment.