Identity Framework User Lockdown
问题 I'm trying to lock user login after 3 unsuccessful login attempts for 5 minutes. I have add this 3 lines to App_Start/IdentityConfig.cs public static ApplicationUserManager Create( ... ) method: manager.MaxFailedAccessAttemptsBeforeLockout = 3; manager.DefaultAccountLockoutTimeSpan = new TimeSpan(0, 5, 0); manager.UserLockoutEnabledByDefault = true; After that I register new user via POST /api/Account/Register (in default scaffolded AccountController ). Account is created and LockoutEnabled