Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: wambuipixel <kiokowambui015@gmail.com>
  • Loading branch information
wambui-pixel committed Mar 19, 2024
1 parent 23b3e86 commit 6af57ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions ui/web/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2>Login</h2>
id="password"
placeholder="Password"
/>
<span class ="password-toggle-icon"><i class="fas fa-eye"></i></i></span>
<span class="password-toggle-icon"><i class="fas fa-eye"></i></span>
</div>
<div id="passwordError" class="text-danger"></div>
</div>
Expand Down Expand Up @@ -178,13 +178,13 @@ <h5 class="modal-title" id="forgotPasswordModalLabel">Enter email</h5>
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") {
Expand All @@ -196,8 +196,8 @@ <h5 class="modal-title" id="forgotPasswordModalLabel">Enter email</h5>
togglePassword.classList.remove("fa-eye-slash");
togglePassword.classList.add("fa-eye");
}
})
})


function showError(errorMessage) {
loginError.innerHTML = errorMessage;
Expand Down
8 changes: 4 additions & 4 deletions ui/web/templates/resetpassword.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h2>Reset Password</h2>
placeholder="Password"
required
/>
<span class ="password-toggle-icon"><i class="fas fa-eye"></i></i></span>
<span class="password-toggle-icon"><i class="fas fa-eye"></i></span>
<div id="passwordError" class="text-danger"></div>
</div>
</div>
Expand All @@ -54,7 +54,7 @@ <h2>Reset Password</h2>
placeholder="confirm Password"
required
/>
<span class ="password-toggle-icon"><i class="fas fa-eye"></i></i></span>
<span class="password-toggle-icon"><i class="fas fa-eye"></i></span>
<div id="confirmPasswordError" class="text-danger"></div>
</div>
</div>
Expand Down Expand Up @@ -91,7 +91,7 @@ <h2>Reset Password</h2>
}
//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") {
Expand All @@ -104,7 +104,7 @@ <h2>Reset Password</h2>
icon.classList.add("fa-eye");
}
});
})
});
</script>
</body>
</html>
Expand Down

0 comments on commit 6af57ce

Please sign in to comment.