Hello,
Why does the UserName and Email have the same value on registration??? In this case
why do you need UserName column since you have already Email column?
var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>();
var signInManager = Context.GetOwinContext().Get<ApplicationSignInManager>();var user = new ApplicationUser() { UserName = Email.Text, Email = Email.Text };
I want users to be able to login using their username not the email address.
So, I've created a new Web Forms project then I've added a new text field on Registration.aspx page called UserName and then I've changed this line:
var user = new ApplicationUser() { UserName = UserName.Text Go to the complete details ...