Kentico:10 How to allow E-Mail and Username authentication at the same time

124 Views Asked by At

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.

1

There are 1 best solutions below

1
On

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.