Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Halstrick2014-03-14 11:35:37 -0400
committerChristian Halstrick2014-03-14 11:43:24 -0400
commit7bc9127d75800fb4efeb47f60908da416cfec280 (patch)
tree516073b9c79ef2bcb65bf5cc877960f61b688d2d
parenta1270fec77111af6b2dfa8e9724b221f1a7abbc6 (diff)
downloadegit-7bc9127d75800fb4efeb47f60908da416cfec280.tar.gz
egit-7bc9127d75800fb4efeb47f60908da416cfec280.tar.xz
egit-7bc9127d75800fb4efeb47f60908da416cfec280.zip
Reset user and password fields when credentialsprovider is reset
If authentication fails due to wrong credentials we need to ask the user to correct the credentials. Clearing only the SecureStore entry isn't sufficient. We have to clear also the user and password fields. JGit-Dependency: I6fa726a14a84b06411e7010608c7a1e2bfb8bfe8 Bug: 430210 Change-Id: I5f029e38fcb3ab0a58baced5d95056b72d810f0a
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java
index 22435338fa..d0715f959b 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/credentials/EGitCredentialsProvider.java
@@ -140,6 +140,8 @@ public class EGitCredentialsProvider extends CredentialsProvider {
public void reset(URIish uri) {
try {
Activator.getDefault().getSecureStore().clearCredentials(uri);
+ user = null;
+ password = null;
} catch (IOException e) {
Activator.logError(MessageFormat.format(
UIText.EGitCredentialsProvider_FailedToClearCredentials,

Back to the top