diff options
author | Fabian Henneke <FabianHenneke@users.noreply.github.com> | 2020-06-26 09:00:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 09:00:19 +0200 |
commit | 6b5984dfe65a538a9b96878dff66aea4743a5f79 (patch) | |
tree | fe4d6ed79f5c056acfca488e5056bdf9cbeb2e08 /app/src/main/java/com | |
parent | 889208b2644fd5676de8e05b81b4712dd11fa58b (diff) |
Reset SSH passphrase after SSH key import (#885)
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/UserPreference.kt | 1 |
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() |