In Varbase, by default. Users can log in to the site using either their username or Email address, thanks to the Email Registration module.
Login Form Using Email or Username
How It Works
Login and Registration
The module helps in managing users' sign-up process and forgotten passwords retrieval, users can signup using only their Email address, the username will be the username part of the Email, ex: [email protected] will have the username “firstlast”.
Registration Form - Email Only
Reset Password
Password retrieval will also require the user to fill in their Email address rather than the username which will have more sense since the password retrieval link will be sent to the Email address.
Reset Password Form - Email Only
Enabling Email-Only Login
Email-only login means that users will not be allowed to login using usernames anymore. To configure that follow the steps below:
Navigate to accounts setting page, Administration \ Configuration \ People \ Account settings
Check under the Registration and cancellation section
Deselect the Allow login with email address or username check box
Registration and Cancellation Settings
Updating Welcome Emails
Welcome Emails might need updates regarding the needed token or for updating the template itself.
Navigate to Administration \ Configuration \ People \ Account settings
Scroll to the Emails section
Check the template - the image below shows an example of using the token [user:mail] instead of the default [user:display-name] to show the Email address instead of the username.
Welcome Emails Settings
Enabling Username-only Login
To have username only login, the Email registration module should be uninstalled from the site.