I have followed the SO example code and the official documentation but however I change the password length in my Aspnet core 2.1 project nothing changes.
I always get the message "The Password must be at least 6 and at max 100 characters long."
In public void ConfigureServices(IServiceCollection services)
I have tried
services.Configure<IdentityOptions>(options =>
{
options.Password.RequiredLength = 1;
});
in various places, or adding it to AddDefaultIdentity<>
services.AddDefaultIdentity<IdentityUser>(options =>
options.Password.RequiredLength = 1;
)
.AddEntityFrameworkStores<ApplicationDbContext>();
but to no avail.
I am using the non-scaffolded version so I don't have access to the HTML or cshtml files.