Share via

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"

Developer technologies | ASP.NET Core | Other

Your answer

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