Home > front end >  How to change Identity validation properties
How to change Identity validation properties

Time:02-11

I created an Identity project, using .net core 3 version. I generated a Migrations file, and Startup.cs with some configuration.

public void ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext<ApplicationDbContext>(options =>
                options.UseSqlServer(
                    Configuration.GetConnectionString("DefaultConnection")));
            services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
                .AddEntityFrameworkStores<ApplicationDbContext>();
            services.AddControllersWithViews();
            services.AddRazorPages();
        }

But how to modify the rules for creating passwords during registration? enter image description here

  • Related