Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

User Login ID

No security coverage
View on drupal.org

This module allows users to log in using a different identifier than their username. It provides an alternative field for authentication, separating the login credential from the display name to improve user experience and administrative clarity.

Out of the box, Drupal uses the username as login credential and display name. Without a module implementing hook_user_format_name_alter() to alter the displayed name, the value returned from User::getDisplayName() is the same value returned from User::getAccountName().
There is code in Drupal core (and probably in third-party modules) that still call User::getAccountName() (which should be used to show the username to administrators and the user who owns the account) instead of User::getDisplayName(). (See #2629286: Use getDisplayName() for user names consistently for the Drupal core.) This means that the username is still shown on pages where the display name should instead be shown.

This module defines a new base field for the User entity and uses its value when authenticating users.

Activity

Total releases
3
First release
Mar 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Jun 19, 2026
1.0.0-alpha1 Pre-release Mar 12, 2026
1.0.x-dev Dev Mar 12, 2026