home.js 479 B

123456789101112131415161718
  1. /*
  2. * Display the current hash for the config file
  3. *
  4. * @returns void
  5. */
  6. function showEncodedPassword() {
  7. if ($("#Password").val() === "") {
  8. $("#Password").addClass("emptyfield");
  9. return;
  10. }
  11. //if ($("#Salt").val() === "") {
  12. // $("#Salt").addClass("emptyfield");
  13. // return;
  14. //}
  15. passw = encryptSha2( $("#Password").val() + $("#Salt").val());
  16. msg = "Please set your hash in the config file with this value";
  17. alert(msg + "\n\n" + passw);
  18. }