diff --git a/ui/web/templates/login.html b/ui/web/templates/login.html index 132f6036..9085f0a1 100644 --- a/ui/web/templates/login.html +++ b/ui/web/templates/login.html @@ -51,7 +51,7 @@

Login

id="password" placeholder="Password" /> - +
@@ -178,13 +178,13 @@ window.location.href = `${pathPrefix}/tokens/secure`; break; } - + }) - + .catch((error) => { console.error("error submitting login form: ", error); }); - } + } //code for toggling the visibility of the password togglePassword.addEventListener("click", function () { if (passwordField.type === "password") { @@ -196,8 +196,8 @@ togglePassword.classList.remove("fa-eye-slash"); togglePassword.classList.add("fa-eye"); } - }) - + }) + function showError(errorMessage) { loginError.innerHTML = errorMessage; diff --git a/ui/web/templates/resetpassword.html b/ui/web/templates/resetpassword.html index 2719c01a..874203b1 100644 --- a/ui/web/templates/resetpassword.html +++ b/ui/web/templates/resetpassword.html @@ -39,7 +39,7 @@

Reset Password

placeholder="Password" required /> - +
@@ -54,7 +54,7 @@

Reset Password

placeholder="confirm Password" required /> - +
@@ -91,7 +91,7 @@

Reset Password

} //code for toggling the visibility of the password const togglePassword = document.querySelectorAll(".password-toggle-icon i"); - togglePassword.forEach(icon => { + togglePassword.forEach((icon) => { icon.addEventListener("click", function () { const passwordField = icon.parentElement.previousElementSibling; if (passwordField.type === "password") { @@ -104,7 +104,7 @@

Reset Password

icon.classList.add("fa-eye"); } }); - }) + });