Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6fc7964

Browse files
Ignore case when comparing username
Co-authored-by: iamwillshepherd <iamwillshepherd@users.noreply.github.com>
1 parent 94c4344 commit 6fc7964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ private GitHubUser GetValidatedGitHubUser(Connection keychainConnection, IKeycha
255255
{
256256
var login = ret.Output[1];
257257

258-
if (login != keychainConnection.Username)
258+
if (!string.Equals(login, keychainConnection.Username, StringComparison.InvariantCultureIgnoreCase))
259259
{
260260
logger.Trace("LoadKeychainInternal: Api username does not match");
261261
throw new TokenUsernameMismatchException(keychainConnection.Username, login);

0 commit comments

Comments
 (0)