From 78022d03a0969801d629a71e68ec3d8259cb330d Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 15 Sep 2016 10:55:50 +0200 Subject: [PATCH] IDEA-CR-13813 fix GitHttpGuiAuthenticator password label --- .../src/git4idea/commands/GitHttpGuiAuthenticator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/git4idea/src/git4idea/commands/GitHttpGuiAuthenticator.java b/plugins/git4idea/src/git4idea/commands/GitHttpGuiAuthenticator.java index 96d8f9d3c6f5..8e8afe2cec1a 100644 --- a/plugins/git4idea/src/git4idea/commands/GitHttpGuiAuthenticator.java +++ b/plugins/git4idea/src/git4idea/commands/GitHttpGuiAuthenticator.java @@ -15,9 +15,9 @@ */ package git4idea.commands; +import com.intellij.credentialStore.CredentialPromptDialog; import com.intellij.credentialStore.Credentials; import com.intellij.ide.passwordSafe.PasswordSafe; -import com.intellij.ide.passwordSafe.ui.PasswordSafePromptDialog; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.ModalityState; import com.intellij.openapi.diagnostic.Logger; @@ -99,8 +99,8 @@ class GitHttpGuiAuthenticator implements GitHttpAuthenticator { } myPasswordKey = getUnifiedUrl(url); - String password = PasswordSafePromptDialog.askPassword(myProject, myTitle, "Enter the password for " + getDisplayableUrl(url), - PASS_REQUESTER, myPasswordKey, false, null); + String password = CredentialPromptDialog.askPassword(myProject, myTitle, "Password for " + getDisplayableUrl(url), + CredentialAttributes(PASS_REQUESTER, myPasswordKey)); LOG.debug("askPassword. Password was asked and returned: " + (password == null ? "NULL" : password.isEmpty() ? "EMPTY" : "NOT EMPTY")); if (password == null) { myWasCancelled = true;