Adding Email Confirmation to ASP.NET Identity in MVC 5
In a previous article I demonstrated how to customize the user profile information in ASP.NET Identity . Specifically I showed how to add capturing an email address for the user. We will expand on this work and add email confirmation to the registration process. This process will send an email to the user with a link they can click on to confirm their registration and log in to the system. Prior to confirmation they will not be able to log in. This process will be similar to the one I described for adding email confirmation to SimpleMembership . First we need to modify the user information to store a the confirmation token and a flag indicating whether confirmation was completed or not. So now our ApplicationUser looks like this. public class ApplicationUser : IdentityUser { public string Email { get; set; } public string ConfirmationToken { get; set; } public bool IsConfirmed { get; set; } } If you have already made cha...