Currently, I'm using Asp.net core 1.1, EF core & Asp.net core Identity in my system.
I have a configure below in startup.cs
class for the password policy.
Is there a configure to disable account when a user continuously login fails?
services.Configure<IdentityOptions>(options =>
{
// Password settings
options.Password.RequireDigit = true;
options.Password.RequiredLength = 6;
options.Password.RequireNonAlphanumeric = true;
options.Password.RequireUppercase = true;
options.Password.RequireLowercase = true;
}
You can simply do it like this
For more details see this link