Skip to content

Commit 2f453cf

Browse files
Merge pull request #5560 from microsoft/remove-password-5
[Task 1855279] fix bug when saving password
2 parents ac3b9e2 + 829dfd1 commit 2f453cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/secure/IdeaSecureStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public void migratePassword(@Nonnull String oldKeyOrServiceName, @Nullable Strin
5858
if (StringUtils.isBlank(passwordSafe.getPassword(newKey))) {
5959
passwordSafe.setPassword(newKey, passwordSafe.getPassword(oldKey));
6060
}
61-
passwordSafe.set(oldKey, null);
61+
passwordSafe.setPassword(oldKey, null);
6262
}
6363

6464
@Nonnull
65-
private CredentialAttributes makeKey(String serviceName, @Nullable String key, @Nullable String userName) {
65+
private static CredentialAttributes makeKey(String serviceName, @Nullable String key, @Nullable String userName) {
6666
String serverNameWithPrefix = serviceName;
6767
if (!StringUtils.contains(serviceName, "Azure IntelliJ Plugin")) {
6868
serverNameWithPrefix = StringUtils.join("Azure IntelliJ Plugin | " + serviceName);

0 commit comments

Comments
 (0)