summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-06-26 09:00:19 +0200
committerHarsh Shandilya <me@msfjarvis.dev>2020-06-26 12:44:11 +0530
commitb5cff71b939bc13bdfbb031fb7ab6aba33598955 (patch)
tree0d98974efaacc8a16a5af3917456409d997c3ce3 /app/src/main
parent694e461f6c295916c84de836f9ae28307e515f54 (diff)
Reset SSH passphrase after SSH key import (#885)
(cherry picked from commit 6b5984dfe65a538a9b96878dff66aea4743a5f79) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-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()