Forráskód Böngészése

Update index.html

Dan Nuggetsman 1 hónapja
szülő
commit
6c1eb882b5
1 módosított fájl, 20 hozzáadás és 1 törlés
  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");
   }