From 88b1de2b509c007171b432da1d9b4b4761509def Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Thu, 27 Aug 2020 17:35:26 +0200 Subject: Do not return stored password on first retry (#1061) --- app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt b/app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt index b7b4f881..6ac5cba3 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt @@ -48,9 +48,9 @@ class CredentialFinder( } else -> throw IllegalStateException("Only SshKey and Password connection mode ask for passwords") } - val storedCredential = gitOperationPrefs.getString(credentialPref, null) if (isRetry) gitOperationPrefs.edit { remove(credentialPref) } + val storedCredential = gitOperationPrefs.getString(credentialPref, null) if (storedCredential == null) { val layoutInflater = LayoutInflater.from(callingActivity) -- cgit v1.2.3