DEV 6.4 – Make sure login and authentication processes are accessible
Why is this important?
Remembering usernames and passwords, or passing authentication tests can be difficult, especially for users with cognitive impairments. Many sites treat incorrect logins as security threats, and genuine users experiencing difficulty logging in can be locked out of their accounts.
Ensuring that logins are accessible, and appropriate authentication options are provided for users with access needs, means that all users can access your services as intended.
Allow users to copy-paste details into username and password fields
- Allow users to use external references for their details, either as an aid to memory, or to avoid transcription errors;
- Allow users to enter in data from documents on their computer or password managers.
Provide users with a method to authenticate that does not involve a password
- In cases where users cannot remember their password, provide an option to login using a link sent to their email address.
Code input fields with the appropriate ‘type’
Password fields should have a type of ‘password’; number field should have a type of ‘number’. Providing the correct input type allows operating systems and assistive technology to provide the correct method input (for example, the numerical keyboard) and output (for example, masking password fields), and to prefill fields where that data is available (for example, browser- or OS-remembered email and password combinations)
When using multi-factor authentication
- ensure users are given advance warning of the requirement and time window;
- ensure enough time is provided for users to verify without requiring a new code – if short time windows are required for security, provide an accessible alternative (for example, sending a link to the registered email address to bypass);
- Allow users with access requirements to be added to an exceptions list for multi-factor authentication.
Provide alternatives to CAPTCHA
- Users with visual impairments may not be able to use image-based CAPTCHA elements to authenticate themselves, because they are not able to perceive the images themselves.
- Users with cognitive impairments may not be able to understand how to interpret the representations of characters in an image-based CAPTCHA.
Provide a text-based alternative to images-based CAPTCHA. If you are able to, use a CAPTCHA system based on a simple instruction instead, such as the checking of a checkbox. Wherever possible, do not use CAPTCHAs at all.
Avoid culturally-specific CAPTCHAs
- If possible, avoid requiring users to identify objects that are specific to one cultural context or have regional differences in appearance, for example, asking British users to identify images of 'crosswalks' may be a barrier, because ‘crosswalk’ is an American term.
Examples of good practice
Default keyboard for alpha-numeric input
<input type="text" />
Input type of number to trigger the numeric keyboard
<input type="number" />
Input type of password to mask the characters in the form field
Include ‘Show/Hide password’ functionality
<input type="password" />
Input type of email to trigger the email keyboard layout
<input type="email" />
Further good practice
EN 301 549 v 2.1.2
- 188.8.131.52 Info and Relationships
- 184.108.40.206 Identify Input Purpose