Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 6b5984d

Browse files
Reset SSH passphrase after SSH key import (#885)
1 parent 889208b commit 6b5984d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/zeapo/pwdstore/UserPreference.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ class UserPreference : AppCompatActivity() {
655655
val prefs = PreferenceManager.getDefaultSharedPreferences(applicationContext)
656656

657657
prefs.edit { putBoolean("use_generated_key", false) }
658+
getEncryptedPrefs("git_operation").edit { remove("ssh_key_local_passphrase") }
658659

659660
// Delete the public key from generation
660661
File("""$filesDir/.ssh_key.pub""").delete()

0 commit comments

Comments
 (0)