Hello everyone how to lock out a user account after 5 attempts in .net core. I have set code in a startup.cs but not working.
services.AddIdentity
{
options.SignIn.RequireConfirmedAccount = true;
options.SignIn.RequireConfirmedEmail = true;
options.Lockout.AllowedForNewUsers = true;
options.Lockout.MaxFailedAccessAttempts = 3;
options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(10);
})
Sachin SinghPosted Oct 26, 2021, 10:31 AM
Sachin SinghPosted Oct 26, 2021, 11:16 AM
Ketan MokariyaPosted Oct 26, 2021, 9:59 AM