Move code to encrypt into PasswordEntry function

Add Update Masterkey feature
This commit is contained in:
Gregory Soutade
2015-04-23 21:36:50 +02:00
parent e16fa0c218
commit b330af258f
3 changed files with 106 additions and 15 deletions

View File

@@ -157,6 +157,20 @@ if ($user != "")
}
?>
</div>
<div id="update_masterkey">
<?php
global $user;
if ($user != "")
{
echo "<b>Update Masterkey</b><br/>\n";
echo 'Old master key <input type="text" id="oldmkey"/>';
echo 'New master key <input type="text" id="newmkey" onkeyup="chkPass(this.value);"/>';
echo '<input type="button" value="Update masterkey" onClick="update_masterkey();"/>';
}
?>
</div>
</div>
</body>
</html>