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 SinghRank #66 · 26.2K reputationPosted Oct 26, 2021, 6:31 AM EDT
Ketan MokariyaRank #1,793 · 832 reputationPosted Oct 26, 2021, 5:59 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 26, 2021, 7:16 AM EDT