You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate HIBP breach result into strength score bar
When a password is found in a breach, force the meter to score 0
(red bar, 'Very weak') with 'This password appeared in a data breach.'
shown in the unified warning slot. Crack time is hidden (irrelevant
for a known-breach password).
Previously a separate warning element floated in the label row, leaving
the score bar potentially showing 'Strong' alongside it. Now there is
one unified signal.
Remove the .password-hibp-warning element entirely; clearMeter and
onInput no longer reference it. HIBP check stays blur-only (fewer
API calls than running on every keystroke).
Change warning text color from yellow to red (text-danger)
Better contrast and more appropriate severity a breach warning
or zxcvbn pattern diagnosis warrants red, not yellow.
check HIBP while typing
- Run HIBP check inside debounced onInput (fires 300ms after typing stops),
not only on blur user sees breach warning without leaving the field
- Skip HIBP when password is below minimum length (fails server validation first)
- Fix stale zxcvbn result: staleness check after await ensureZxcvbn()
- Fix ensureZxcvbn error handling: reset promise on failure to allow retry
- Immediate clearMeter when field emptied (no 300ms debounce lag)
- Add change event listener for autofill / password-manager fills
- Remove tabindex=-1 from show-password toggle (WCAG 2.1 SC 2.1.1 compliance)
- Simplify: blur-based HIBP handler removed; inputGeneration replaces blurGeneration
0 commit comments