How can you modify the standard ASP.NET MVC login pages to allow the user to login with either an email address OR their username?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
+1 to Sparkle as that looks like it would work but I found an easier way.
In AccountModel.cs change Display attribute (just label of textbox on login page)
In AccountController.cs change LogOn method to see if username looks like an email address, if so then try and find userName from email address.