IDEA-184450 Prompt for a new SSH passphrase after the saved one fails

This commit is contained in:
Dmitriy Smirnov
2018-01-02 23:00:02 +03:00
parent 4aa17e9cca
commit 36ad98f976
@@ -74,7 +74,7 @@ public class GitSSHGUIHandler {
CredentialAttributes oldAttributes = oldCredentialAttributes("PASSPHRASE:" + keyPath);
CredentialAttributes newAttributes = passphraseCredentialAttributes(keyPath);
Credentials credentials = getAndMigrateCredentials(oldAttributes, newAttributes);
if (credentials != null) {
if (credentials != null && !resetPassword) {
return credentials.getPasswordAsString();
}
return CredentialPromptDialog.askPassword(myProject, GitBundle.getString("ssh.ask.passphrase.title"),