question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable User lockout feature aspnet core

See original GitHub issue

In the class user Manager I tried to use this code below on the constructor but doesn’t work. Options.Lockout.AllowedForNewUsers = false;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ryancyqcommented, Aug 10, 2018

If you want to enable/disable lockout for a specific user, please use AbpUserManager.SetLockoutEnabledAsync()

0reactions
josenildolinscommented, Aug 10, 2018

Good Morning, I Would like to thank you all for the helpful support. @ddzsy I tried to do what you said and works well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Lockout with ASP.NET Core Identity
The user lockout feature is the way to improve application security by locking out a user that enters a password incorrectly several times....
Read more >
How do I implement permanently disabled (lockout) feature ...
How do I implement permanently disabled (lockout) feature, so that user can't log in, in ASP.NET core 2 identity.
Read more >
asp.net - Disable User in ASPNET identity 2.0
The trick is to set the LockoutEnabled property on the Identity user AND set the LockoutoutEndDateUtc to a future date from your code...
Read more >
User Lockout in ASP.NET Core Identity
To enable the User Lockout in Identity use the IdentityOptions object to configure it in the ConfigureServices method of the Startup.cs class.
Read more >
Configure ASP.NET Core Identity
ASP.NET Core Identity uses default values for settings such as password policy, lockout, and cookie configuration. These settings can be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found