Skip to content

Commit

Permalink
github: return PAT token from view model
Browse files Browse the repository at this point in the history
Fix a bug in the in-proc UI logic for returning the personal access
token. We were accidentally returning the password field rather than the
token field for PATs.
  • Loading branch information
mjcheetham committed May 4, 2023
1 parent 73ddb8e commit 7531d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/GitHub/GitHubAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public async Task<AuthenticationPromptResult> GetAuthenticationAsync(Uri targetU
case AuthenticationModes.Pat:
return new AuthenticationPromptResult(
AuthenticationModes.Pat,
new GitCredential(userName, viewModel.Password)
new GitCredential(userName, viewModel.Token)
);

default:
Expand Down

0 comments on commit 7531d27

Please sign in to comment.