In Kentico, there is a login form with two textboxes (Email and Password).
Users already access the site by logging in via Email.
I need them to be able to access the site using UserName instead of Email. The username values are already present in the CMS_User
table, column UserName
.
Unless you're forcing a username to be an email address, the field can handle usernames which are not email addresses as well. When you register on the public site or create a user account in Kentico that is what makes the difference on what value is stored where.
When you register on the public site and don't have a specific username field, it will take the email address and place it as the username value.