AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

AddDefaultIdentity , AddIdentity

Open paul000 opened this issue 8 years ago • 1 comments

When adding "configure.SignIn.RequireConfirmEmail" and changing AddDefaultIdentity to AddIdentity the Login and Register link no longer work when running the app. If I change it back to AddDefaultIdentity, I get the error "IServiceCollection does not contain a definition for AddDfaultIdentity. The code: services.AddDefaultIdentity<IdentityUser, IdentityRole>(configure => { configure.SignIn.RequireConfirmedEmail = true; }) .AddEntityFrameworkStores<ApplicationDbContext>(); Do I need to change the routes somewhere?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

paul000 avatar Jul 08 '18 17:07 paul000

This was resolved by following the instructions in #7521.

paul000 avatar Jul 08 '18 20:07 paul000