Warn when no password are unciphered using a masterkey

Clear masterkey after "See" or "Add" action
This commit is contained in:
Gregory Soutade
2014-02-19 17:34:51 +01:00
parent 6f8f952a92
commit ce1d010b85
2 changed files with 19 additions and 8 deletions

View File

@@ -102,8 +102,8 @@ else
}
}
echo "</select>\n";
echo ' <b>Master key </b> <input id="master_key" type="password" onkeypress="if (event.keyCode == 13) update_master_key();"/>';
echo "<input type=\"button\" value=\"See\" onclick=\"update_master_key();\" />" . "\n";
echo ' <b>Master key </b> <input id="master_key" type="password" onkeypress="if (event.keyCode == 13) update_master_key(true);"/>';
echo "<input type=\"button\" value=\"See\" onclick=\"update_master_key(true);\" />" . "\n";
if (!isset($_SERVER['HTTPS']))
echo "<div id=\"addon_address\">Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "</div>\n";