From 6b5984dfe65a538a9b96878dff66aea4743a5f79 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Fri, 26 Jun 2020 09:00:19 +0200 Subject: Reset SSH passphrase after SSH key import (#885) --- app/src/main/java/com/zeapo/pwdstore/UserPreference.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src') 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() -- cgit v1.2.3