Allow Email/Username Login & Registration
Last updated
Last updated
In Varbase, by default. Users can log in to the site using either their username or Email address, thanks to the Email Registration module.
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: firstlast@vardot.com will have the username “firstlast”.
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.
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
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.
To have username only login, the Email registration module should be uninstalled from the site.
Navigate to Extend \ Uninstall module
Search for the module name
Uninstall it