I'm new in MVC and ASP.NET Identity. Is there any way to add a secondry email using ASP.NET Identity ?
I need to give a user the ability to add a second email to use it in my application.
You extend the ApplicationUser
Entity to add additional properties.
public class ApplicationUser : IdentityUser
{
public string SecondaryEmail { get; set; }
}
You will need to update your register view models and actions to get the details parsed through.
If you want the user to be able to login with this secondary email you need a custom implementation of SignInManager<ApplicationUser>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With