Dan Nuggetsman před 1 měsícem
rodič
revize
6c1eb882b5
1 změnil soubory, kde provedl 20 přidání a 1 odebrání
  1. 20 1
      index.html

+ 20 - 1
index.html

@@ -42,7 +42,26 @@
   <link href="Public/css/style.css?v=1631827555" type="text/css" rel="stylesheet">
 
   <script>
-  
+
+/*
+ *  Display the current hash for the config file
+ *  
+ *  @returns void
+ */
+function showEncodedPassword() {
+  if ($("#Password").val() === "") {
+    $("#Password").addClass("emptyfield");
+    return;  
+  }
+  //if ($("#Salt").val() === "") {
+  //  $("#Salt").addClass("emptyfield");
+  //  return;  
+  //}	   	
+  passw = encryptSha2( $("#Password").val() + $("#Salt").val());
+  msg = "Please set your hash in the config file with this value";
+  alert(msg + "\n\n" + passw);	
+}
+	  
   function hideTitle() {
     $("#myh1").hide("slow");
   }