fix: add password match indicator to reset password form
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Users couldn't tell why submit button stayed disabled when passwords
didn't match - all other checkboxes were green but no visual feedback
for password confirmation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-23 10:25:23 +01:00
parent 625e7a1112
commit 3886147bd7

View File

@ -298,6 +298,10 @@
<span class="checkbox-icon"></span>
<span class="requirement-text">Cyfra</span>
</li>
<li id="req-match">
<span class="checkbox-icon"></span>
<span class="requirement-text">Hasła są identyczne</span>
</li>
</ul>
</div>
</div>
@ -437,6 +441,8 @@
const hasDigit = /\d/.test(password);
const passwordsMatch = password === confirm && confirm.length > 0;
updateRequirement('req-match', passwordsMatch);
submitBtn.disabled = !(hasLength && hasUpper && hasLower && hasDigit && passwordsMatch);
}