|
@@ -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);
|
|
|
+}
|