diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-08-27 17:35:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 21:05:26 +0530 |
commit | 88b1de2b509c007171b432da1d9b4b4761509def (patch) | |
tree | 59c7b3ec1be9e75bd54eb0b5eb864d4c9f88e2f2 /app/src/main/java | |
parent | c848788f057d18bddfc7c8cc8473396d394ac733 (diff) |
Do not return stored password on first retry (#1061)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/git/operation/CredentialFinder.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |