Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services.AddIdentity<IdentityUser, IdentityRole>(options => {
- options.Password.RequiredLength = 6;
- options.Password.RequireNonAlphanumeric = false;
- options.Password.RequireUppercase = false;
- options.User.RequireUniqueEmail = true;
- })
- .AddRoles<IdentityRole>()
- .AddRoleManager<RoleManager<IdentityRole>>()
- .AddDefaultUI()
- .AddDefaultTokenProviders()
- .AddEntityFrameworkStores<ApplicationDbContext>();
Advertisement
Add Comment
Please, Sign In to add comment