Skip to content

Commit

Permalink
Azure: remove all credentials instead of just the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Mar 2, 2020
1 parent 8eaeff4 commit daf32ee
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/cascadia/TerminalConnection/AzureConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,17 +956,15 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation
_WriteStringWithNewline(RS_(L"AzureNoTokens"));
return;
}
while (credList.Size() > 0)

for (const auto& cred : credList)
{
try
{
vault.Remove(credList.GetAt(0));
}
catch (...)
{
_WriteStringWithNewline(RS_(L"AzureTokensRemoved"));
return;
vault.Remove(cred);
}
CATCH_LOG();
}
_WriteStringWithNewline(RS_(L"AzureTokensRemoved"));
}
}

0 comments on commit daf32ee

Please sign in to comment.