This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-58120539-dccc-4e90-831a-fc86804ac72a XWIKI-24838 Open

The email field of the forgot username form has no autocomplete attribute

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-63f99024-681b-4f6c-91ef-d93ee5aad977 Charpentier Lucas created this issue on 09/Sep/26 12:05
 
Summary: The email field of the forgot username form has no autocomplete attribute
Issue Type: cid:jira-generated-image-avatar-58120539-dccc-4e90-831a-fc86804ac72a Bug
Affects Versions: 18.7.0
Assignee: Unassigned
Components: Authentication
Created: 09/Sep/26 12:05
Labels: wcag
Priority: cid:jira-generated-image-static-major-4d981cc6-7499-41d2-bb04-1d15a15a7ae3 Major
Reporter: Charpentier Lucas
Description:

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

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/ForgotUsername.
  • Inspect the email input.

Actual behaviour

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

Expected behaviour

The input carries autocomplete="email", like the registration form already does since XWIKI-18837. Using type="email" instead of type="text" would also give a suitable virtual keyboard on mobile and native format validation.

Location

xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/forgotusername.vm, line 52.