Move code to encrypt into PasswordEntry function
Add Update Masterkey feature
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user