Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

email_registration

25,532 sites Security covered
View on drupal.org

Allow users to register using an email address. Users can then log-in using their email address and password for authentication.

This module aims to solve some usability issues in managing accounts on a Drupal site.

  1. On many sites the idea of a "username" is not necessary while the email is necessary. This module lets users register and login using only their email address and not worry about a username.
  2. In general the fewer fields on a form the easier it is for people to finish the task. This module lets sites use just an email for registration form. How simple is just one form? So simple.
  3. This module can be configured to allow a username as well for sites where that is important. In these cases, users get the benefit of being able to login with username or email which is helpful in case a user tries to login with their email (they are likely to remember their email even if they forgot their username).

By default, a username is generated and assigned based on the user name part of the email address and their user ID. Sites that want to create usernames in their own way can do so by implementing hook_email_registration_name_alter.

Email Registration Username
The "Email Registration Username" submodule will use your email address as your username on registration and sync both fields on updating the user (if they were synced before, making sure users with the right permission can still set a different username if needed).

Note: usernames can easily be leaked! Therefore, if you are using the submodule, your users email addresses might be leaked!
There is an obfuscation logic in place, which obfuscates the username (aka mail address) for users without the right permission. Although, this only obfuscates every call of "$account->getDisplayName()". The username might still be passed raw and could be leaked.

Installation Instructions:

Enable the module as you normally would.
You will probably want to change the welcome e-mail (Administer -> User Management -> User Settings) and replace instances of the token !username with !mailto

The automatically generated username is still displayed name for posts, comments, etc. You can allow your users to change their username by going to:
(Administer -> User Management -> Access Control) ... [X] change own username
This privilege allows a user to change their username in "My Account".

Related modules:

Alternative modules

  • Mail Login provides a similar functionality to this module and is an alternative module

Modules that are believed to conflict with Email Registration:

Activity

Total releases
1
First release
Mar 2025
Latest release
1 year ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
2.0.0-rc8 Pre-release Mar 5, 2025