The Username module provides a flexible solution for user authentication by allowing various input methods for usernames, including email, phone number, and custom fields. This module is ideal for sites that require diverse authentication methods, making user registration and login more intuitive and customizable.

Features

The Username module extends the basic Drupal user authentication system by enabling users to log in using alternative identifiers like email addresses or phone numbers. Unique features of this module include:

  • Multiple Username Modes: Users can log in using different identifiers such as email, phone number, or custom fields.
  • Custom Display Name Settings: Configure how usernames are displayed across the site.
  • Phone Number Integration: Complete integration with phone numbers, including country code handling and validation.
  • Validation and Restrictions: Set up restrictions and validations for usernames to ensure consistency and security.
  • APIs and Hooks: Provides developers with hooks and APIs to extend and customize the module's functionality.

This module is useful for websites that need to offer flexible login options, catering to a broader user base and enhancing the user experience by simplifying the login and registration processes.

Post-Installation

After installing the Username module, you should navigate to Configuration → People → Username settings to configure the desired username modes. Here, you can select the identifiers you wish to enable (such as phone number or email) and customize display name settings. Additionally, if you use phone numbers as usernames, navigate to Configuration → People → Phone settings to configure country codes, preferred countries, and other phone-related settings.

Additional Requirements

This module requires the following additional modules to work:

  • Phonenumber: Required for handling phone number input and validation.

While the Username module is fully functional on its own, the following modules can enhance its functionality:

  • Token: Allows for more advanced customization of display names and other user information.
  • Phone Number Field: Improves phone number handling and validation across the site.

Similar Projects

There are other modules that provide similar functionalities, such as:

  • LoginToboggan: Allows users to log in using their email address instead of a username. However, it does not offer the same flexibility in handling multiple identifiers like the Username module.
  • Email Registration: Enables users to register using their email address, but lacks the comprehensive phone number integration offered by the Username module.

The Username module is differentiated by its ability to handle multiple identifiers simultaneously, offering a more comprehensive solution for user authentication.

Support

If you need a new feature or encounter any issues, please let me know. You can report it in the Username Issues section.

Username 1.0.0 has been released! Explore the new features now!

The first major release of Username is here, offering enhanced functionality and a modern interface. Dive into the new features, report any issues, and contribute to future updates. Be a part of the growing community!


You may continue to put additional information below here if there are other things you think people need to know about your module!

Project information

Releases