Skip to content

Commit

Permalink
Merge pull request #197 from gjsjohnmurray/fix-194
Browse files Browse the repository at this point in the history
Treat same username on different servers as distinct accounts (fix #194)
  • Loading branch information
gjsjohnmurray authored Jul 27, 2023
2 parents b32e271 + 2268ecf commit b8ee1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authenticationSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ServerManagerAuthenticationSession implements AuthenticationSession
const canonicalUserName = userName.toLowerCase();
this.id = ServerManagerAuthenticationProvider.sessionId(serverName, userName);
this.accessToken = password;
this.account = { id: canonicalUserName, label: `${userName} on ${serverName}` };
this.account = { id: `${serverName}/${canonicalUserName}`, label: `${userName} on ${serverName}` };
this.scopes = [serverName, canonicalUserName];
}
}

0 comments on commit b8ee1c7

Please sign in to comment.