From a6471900e66b90e7ff31e8658ab9fcd112029e94 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Wed, 26 Jul 2023 12:42:02 +0100 Subject: [PATCH] Treat same username on different servers as distinct accounts (fix #194) --- src/authenticationSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authenticationSession.ts b/src/authenticationSession.ts index a6cb657..fedc421 100644 --- a/src/authenticationSession.ts +++ b/src/authenticationSession.ts @@ -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]; } }