aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-06-26 09:00:19 +0200
committerGitHub <noreply@github.com>2020-06-26 09:00:19 +0200
commit6b5984dfe65a538a9b96878dff66aea4743a5f79 (patch)
treefe4d6ed79f5c056acfca488e5056bdf9cbeb2e08 /app/src
parent889208b2644fd5676de8e05b81b4712dd11fa58b (diff)
Reset SSH passphrase after SSH key import (#885)
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt b/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt
index 0ed1a66a..fb27ba6a 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt
@@ -655,6 +655,7 @@ class UserPreference : AppCompatActivity() {
val prefs = PreferenceManager.getDefaultSharedPreferences(applicationContext)
prefs.edit { putBoolean("use_generated_key", false) }
+ getEncryptedPrefs("git_operation").edit { remove("ssh_key_local_passphrase") }
// Delete the public key from generation
File("""$filesDir/.ssh_key.pub""").delete()