SetLockoutEnabledAsync possibly has the wrong description

Simone Brunitti 1 Reputation point
2021-07-13T15:50:30.22+00:00

I am working with ASP.NET Core 3.1 on a system to lockout users after 5 attempts. I am trying to use the SetLockoutEnabledAsync(user, false) Method from the UserManager class to unlock an user after they have reset the password, since its decsription is "Sets a flag indicating whether the specified user is locked out, as an asynchronous operation".

After an user resets their password, however, it looks like the locking mechanisms no longer works, as if it was deactivated by the aformenetioned methd. Shouldn't the description of the SetLockoutEnabledAsync() method be changed to "Sets a flag indicating whether the specified user could be locked out, as an asynchronous operation"

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,560 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.