Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
457 B
1
Indexable
Never
 services.Configure<IdentityOptions>(options=>{options.Lockout.DefaultLockoutTimeSpan=TimeSpan.FromMinutes(5);options.Lockout.MaxFailedAccessAttempts=3;options.Lockout.AllowedForNewUsers=true;});

            services.Configure<IdentityOptions>(options=>{options.Password.RequireDigit= true;options.Password.RequireLowercase= true;options.Password.RequireNonAlphanumeric= true;options.Password.RequireUppercase= true;options.Password.RequiredLength= 8;});