I'm writing an ASP.NET MVC 5 application, the application scafolded an authentication but the login only authenticates/logins users using the UserName. How to edit the login method to accept either email or username?
It's as simple as making the UserName
and Email
the same. As in store the Email in the UserName field.