Skip to content

Commit

Permalink
Merge pull request #1583 from testfirstcoder/fix-possible-nullreferen…
Browse files Browse the repository at this point in the history
…ceexception

use static equals method to avoid exception
  • Loading branch information
josephdecock authored Dec 5, 2024
2 parents b471bcc + 0779d4d commit 951ab04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IdentityServer/Test/TestUserStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public bool ValidateCredentials(string username, string password)
return true;
}

return user.Password.Equals(password);
return Equals(user.Password, password);
}

return false;
Expand Down

0 comments on commit 951ab04

Please sign in to comment.