diff --git a/faxSrc/assets/htmx/login.html b/faxSrc/assets/htmx/login.html index da6e993..9efcaf2 100644 --- a/faxSrc/assets/htmx/login.html +++ b/faxSrc/assets/htmx/login.html @@ -10,7 +10,7 @@ LOGIN


-

+

@@ -59,4 +59,14 @@ console.error(error); }); }); + + // Replace the dots by asterisks + loginPass = document.getElementById("login-pass") + loginPass.addEventListener("keydown", function() { + + const curVal = loginPass.value; + const newVal = curVal.replace(new RegExp(curVal, 'g'), '*'); + + loginPass.value = newVal; + }) \ No newline at end of file