Skip to content

Commit 7531d27

Browse files
committed
github: return PAT token from view model
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.
1 parent 73ddb8e commit 7531d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/GitHub/GitHubAuthentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private async Task<AuthenticationPromptResult> GetAuthenticationViaUiAsync(
144144
case AuthenticationModes.Pat:
145145
return new AuthenticationPromptResult(
146146
AuthenticationModes.Pat,
147-
new GitCredential(userName, viewModel.Password)
147+
new GitCredential(userName, viewModel.Token)
148148
);
149149

150150
default:

0 commit comments

Comments
 (0)