Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Unlock users from the backend database #10944


User avatar
0
Jayesh created

How do I unlock user from the database? I tried setting LockoutEndDateUtc to null but it didn't work.


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @jayesh

    Here is the code part to unlock user: https://github.com/aspnetzero/aspnet-zero-core/blob/a23044792ada3de7881f4eec81fef96b50f92a0a/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Authorization/Users/User.cs#L67-L71 You should also set AccessFailedCount to 0(zero)