From 40bf55267bb6c60d7d7a1b84ac7badfa54fc9266 Mon Sep 17 00:00:00 2001 From: Atharv1705 Date: Wed, 15 Jul 2026 14:44:23 +0530 Subject: [PATCH] Fix raw HTML rendering in password strength indicator --- frontend/js/password-strength.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/password-strength.js b/frontend/js/password-strength.js index d709a3e..db53277 100644 --- a/frontend/js/password-strength.js +++ b/frontend/js/password-strength.js @@ -81,7 +81,7 @@ const { pct, label: lbl, cls } = checkStrength(val); bar.style.width = pct + "%"; bar.className = "pw-strength-bar " + cls; - label.textContent = lbl; + label.innerHTML = lbl; label.style.color = cls === "pw-weak" ? "#c62828" : cls === "pw-medium" ? "#f57f17" : "#2e7d32"; }); };