Search code examples
authenticationasp.net-mvc-5asp.net-identityemail-validation

MVC 5 - ASP.NET Identity - Token colum empty in email confirmation


When calling UserManager.GenerateEmailConfirmationToken() I get a token, but the ConfirmationToken column in AspNetUsers table is left empty. Does this method suppose to put the token there automatically, and if so where do I tell it the name of the column to look for. Or maybe I need to manually put the token there myself after calling it ?

(Also the EmailConfirmed column in AspNetUsers stays False after calling UserManager.ConfirmEmail but I presume it happens for the same reasons).


Solution

  • There is no ConfirmationToken column by default in Identity 2.0, are you sure this isn't something you added in your user class?