From 1093928d93c097c92934cbb02a0f91f3f3845e3e Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Thu, 27 Aug 2020 11:51:15 +0200 Subject: Delete HTTPS instead of SSH key password on error (#1060) --- app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt b/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt index d537ba7f..eceb2b50 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt @@ -151,7 +151,7 @@ abstract class GitOperation(gitDir: File, internal val callingActivity: Fragment open fun onError(err: Exception) { // Clear various auth related fields on failure callingActivity.getEncryptedPrefs("git_operation").edit { - remove(PreferenceKeys.SSH_KEY_LOCAL_PASSPHRASE) + remove(PreferenceKeys.HTTPS_PASSWORD) } callingActivity.sharedPrefs.edit { remove(PreferenceKeys.SSH_OPENKEYSTORE_KEYID) } d(err) -- cgit v1.2.3