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.
- Many sites need users to provide an email address but do not need a "username." This module lets users register and log in using only their email address and not worry about a username.
- In general, the fewer the fields on a form, the easier it is for people to finish the task. This module lets users register merely by providing an email address.
- This module can be configured to allow a username as well for sites that need it. In this case, 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, but 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:
- Email Change confirmation
- passwordless allows logging in without using a password.
- Real Name allows the administrator to choose fields from the user profile that will be used to show instead of the username.
Alternative modules
- Mail Login provides a similar functionality to this module
Modules that may conflict with Email Registration:
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Access control
22,739 sites report using this module
- Created by Christopher Herberte on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 2.x-dev updated 13 Nov 2026 at 04:11 UTC
Development version: 8.x-1.x-dev updated 31 Jul 2024 at 18:00 UTC




