Forms
Password field blocks pasting or password managers
WCAG 2.2 success criterion 3.3.8 Accessible Authentication (Minimum) (Level AA)
- Level
- AA
- Default severity
- Error
- Available in
- Free
Updated for Lumtera 1.2.2 and Lumtera Pro 1.1.1.
Why does it matter?
Many people cannot remember or retype a strong password — because of memory, dyslexia or motor impairments — and rely on a password manager or copy and paste. A password field that blocks both turns signing in into a memory test, which WCAG 2.2 does not allow.
Who it affects: Screen reader users, voice-control users who say a field's label to move to it, and people with memory or attention difficulties who lose a placeholder once they type.
What does Lumtera flag?
Visible password fields with an inline onpaste or ondrop handler that returns false or calls preventDefault (an error), and password fields set to autocomplete="off", which asks browsers and password managers not to fill them in (a warning). Blocking added from a separate JavaScript file cannot be seen in the content.
Check ID password-paste-blocked — use it to filter the content report or with wp lumtera issues --rule.
How do I fix it in WordPress?
Remove the onpaste (or oncopy/ondrop) handler that stops pasting, and replace autocomplete="off" with autocomplete="current-password" on sign-in forms or autocomplete="new-password" on registration and reset forms. Visitors can then paste or let their password manager fill in the field.
Example
<input type="password" name="pwd" autocomplete="off" onpaste="return false">
<input type="password" name="pwd" autocomplete="current-password">
How do I check the fix?
- Update the post. The issue disappears from the Lumtera Accessibility sidebar on the next check, and from the site report on the next scan.
- Click each field's label: the cursor should move into the field. With a screen reader, each field should announce its label when it receives focus.
Find this issue across your whole site
Lumtera runs this check in the block editor sidebar as you write, in the Elementor panel, in Review mode on the live page, and across the whole site in the content report and with wp lumtera scan. You can change its severity or turn it off in Lumtera → Settings.
Related checks
-
WCAG 4.1.2 · AError
Form field has no label
-
WCAG 1.3.1 · ANeeds review
Form field has more than one label
-
WCAG 1.3.1 · ANeeds review
Options are not grouped with their question
-
WCAG 1.3.5 · AATip
Personal-data field has no autocomplete
-
WCAG 3.3.7 · ATip
Form asks for the same email twice
-
WCAG 3.3.8 · AANeeds review
Check the CAPTCHA has an accessible alternative
Start with the free plugin today
All 69 content checks and 33 whole-page checks, fixes you approve with undo, and the site report — free, with no account and no page limits.