فهرست منبع

Create home.js

Dan Nuggetsman 7 ماه پیش
والد
کامیت
0cfe0d7930
1فایلهای تغییر یافته به همراه18 افزوده شده و 0 حذف شده
  1. 18 0
      Public/static/js/home.js

+ 18 - 0
Public/static/js/home.js

@@ -0,0 +1,18 @@
+/*
+ *  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 = "<?PHP echo(getResource0("Please set your hash in the config file with this value", $lang, "/js/home-js.php"));?>:";
+  alert(msg + "\n\n" + passw);	
+}