Skip to content

Commit

Permalink
登录失败次数过多会锁定
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Aug 15, 2024
1 parent b95469c commit 612793f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SecurityTokenService/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ await events.RaiseAsync(new UserLoginFailureEvent(model.Username, "invalid crede
}

var result = await signInManager.PasswordSignInAsync(user, model.Password,
model.RememberLogin, false);
model.RememberLogin, true);
if (result.Succeeded)
{
await events.RaiseAsync(new UserLoginSuccessEvent(user.UserName, user.Id, user.UserName,
Expand Down Expand Up @@ -605,4 +605,4 @@ private ObjectResult BuildModelValidResult()
var apiErrorResult = BuildModelValidApiResult();
return apiErrorResult == null ? null : new ObjectResult(apiErrorResult);
}
}
}

0 comments on commit 612793f

Please sign in to comment.