Loading...
Area: Episerver B2B Commerce

Using email address as the username

Recommended reading 

To improve and simplify the user experience, the option to use the user's email address as the username can be enabled. This is a globally setting and is set to OFF by default. When the setting is enabled, the Username field is hidden and is replaced with the Email Address field. In most scenarios, this option is enable and setup during implementation; however, there are safeguards in place if enabled on an already existing environment.

Setup

  1. Navigate to the Admin ConsoleAdministration SystemSettings.
  2. Search for "Use Email As User Name".
  3. Change the toggle to show YES.

    IMPORTANT: Enabling this option will effect all existing users on all websites. Upon selecting Save a warning message is provided to emphasize the ramifications of changing the setting and provides an option to cancel the change. Once the save is confirmed, the changes are immediate and cannot be undone.

  4. Click Save.
  5. Upon saving, an automated email is sent to all users stating their username has been changed. This email is only sent to existing users and not to new records.

Items of Note

  • As with all setting changes, an Audit Log entry is made to show who made the change and when.
  • The UserProfile table will save off the current username into the "modified by" and replace it with the email address.
  • The AspNetUsers table is also updated.
  • If a duplicate email address is already in the system, the user is deactivated and a log entry is made in the Application Log stating the change was not made.
  • A new email template is also available: Website_UserNameChanged.
  • When applicable, the notification email is sent to both the old and new email addresses.
Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading