Posted on: 12/28/2014 8:48:56 PM | Views : 619

Hi,
I am developing a project in Visual Studio 2013 with ASP.NET Identity and Visual C#. 
For this project, I have added an extra field in the registration page to allow for the entry of a username - for example "Anyhan". I have changed the code in the AccountController.cs class under the registration method in the following way:
Old code:
var user = new ApplicationUser { UserName = model.Email, Email = model.Email }; New Code:
var user = new ApplicationUser { UserName = model.UserName, Email = model.Email }; The change assigns a username, for example "Anyhan" to the UserName field in the database, along with the entered email address being added to the Email field.
My trouble is, when a user is registered, and they forget their password and wish to reset the password, the email is set using the following code in the IdentityConfi ...

Go to the complete details ...