Enter your password.
By signing up, you agree to the
privacy policy and
terms of service.
diff --git a/client/user/signup.js b/client/user/signup.js
index 110fd5ce2..923746bf2 100644
--- a/client/user/signup.js
+++ b/client/user/signup.js
@@ -1,3 +1,13 @@
+const passwordInput = document.getElementById('password');
+const togglePassword = document.getElementById('toggle-password');
+togglePassword.addEventListener('click', () => {
+ const isPassword = passwordInput.type === 'password';
+ passwordInput.type = isPassword ? 'text' : 'password';
+ togglePassword.querySelector('i').classList.toggle('bi-eye', !isPassword);
+ togglePassword.querySelector('i').classList.toggle('bi-eye-slash', isPassword);
+ togglePassword.setAttribute('aria-label', isPassword ? 'Hide password' : 'Show password');
+});
+
const form = document.getElementById('signup-form');
form.addEventListener('submit', (event) => {
event.preventDefault();