From f86f5a4edca44980f048b8d1cc93692f349e64bd Mon Sep 17 00:00:00 2001 From: Dr1985 <140971685+Dr1985@users.noreply.github.com> Date: Tue, 9 Jun 2026 16:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Reset=20password=20strength=20in?= =?UTF-8?q?dicator=20when=20re-entering=20registration=20modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The passwordValue state was not being cleared when the registration modal re-opened, causing the password strength bar to persist from a previous registration attempt. Added setPasswordValue("") to both resetForm() and the modal-open useEffect. Fixes #3204 --- frontend/components/auth/registerModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/components/auth/registerModal.tsx b/frontend/components/auth/registerModal.tsx index bc854ca57..1a4a19459 100644 --- a/frontend/components/auth/registerModal.tsx +++ b/frontend/components/auth/registerModal.tsx @@ -73,6 +73,7 @@ export function RegisterModal() { const resetForm = () => { setEmailError(""); setPasswordError({ target: "", message: "" }); + setPasswordValue(""); form.resetFields(); }; @@ -144,6 +145,7 @@ export function RegisterModal() { setEmailError(""); setPasswordError({ target: "", message: "" }); + setPasswordValue(""); form.resetFields(); if (registerModalOptions?.email) { form.setFieldsValue({ email: registerModalOptions.email });