This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-277dd677-73d1-4534-85c5-386310a4a147 XWIKI-24837 Open

The username field of the reset password form has no autocomplete attribute

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d15b5463-224a-4e0c-8c47-4f6b7853007a Charpentier Lucas created this issue on 09/Sep/26 12:04
 
Summary: The username field of the reset password form has no autocomplete attribute
Issue Type: cid:jira-generated-image-avatar-277dd677-73d1-4534-85c5-386310a4a147 Bug
Affects Versions: 18.7.0
Assignee: Unassigned
Components: Authentication
Created: 09/Sep/26 12:04
Labels: wcag
Priority: cid:jira-generated-image-static-major-45e3bf79-0f8d-4c80-a499-9c623faec2ff Major
Reporter: Charpentier Lucas
Description:

The username field of the "Forgot your password" form does not carry an autocomplete attribute, so browsers and password managers cannot identify its purpose and do not offer the stored user name.

This fails WCAG 2.1 success criterion 1.3.5 "Identify Input Purpose" (level AA, EN 301 549 9.1.3.5), which requires that a field collecting information about the user exposes its purpose programmatically.

Steps to reproduce

  • Log out.
  • Go to /xwiki/bin/view/XWiki/ResetPassword.
  • Inspect the user name input.

Actual behaviour

The input is rendered as <input type="text" id="u" name="u" class="form-control" size="60" /> with no autocomplete attribute.

Expected behaviour

The input carries autocomplete="username", like the login and registration forms already do since XWIKI-18811 and XWIKI-18837.

Location

xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/resetpasswordinline.vm, line 72.

Note that step 2 of the same flow is already correct: the new-password fields go through definePasswordFields in register_macros.vm and carry autocomplete="new-password".