Skip to content

Commit

Permalink
Fix issue for 'double' access fail count on invalid sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
samgibsonmoj authored and carlsixsmith-moj committed Aug 20, 2024
1 parent faf3863 commit 4a20bd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Infrastructure/Services/Identity/CustomSigninManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ public override async Task<SignInResult> PasswordSignInAsync(string userName, st

var passwordCheckResult = await CheckPasswordSignInAsync(user, password, lockoutOnFailure);

if(passwordCheckResult.Succeeded is false)
{
return passwordCheckResult;
}

if (PasswordChecksOutAndRequiresPasswordReset(passwordCheckResult, user))
{
return CustomSignInResult.PasswordResetRequired;
Expand Down

0 comments on commit 4a20bd7

Please sign in to comment.