question

SimoneBrunitti-0168 avatar image
0 Votes"
SimoneBrunitti-0168 asked RenaNi-MSFT commented

SetLockoutEnabledAsync possibly has the wrong description

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 method. 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"?

dotnet-aspnet-core-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SimoneBrunitti-0168 , could you please share a simple demo which could reproduce your issue?

0 Votes 0 ·

0 Answers