mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 06:45:19 +00:00
Reset SSH passphrase after SSH key import (#885)
This commit is contained in:
@@ -655,6 +655,7 @@ class UserPreference : AppCompatActivity() {
|
|||||||
val prefs = PreferenceManager.getDefaultSharedPreferences(applicationContext)
|
val prefs = PreferenceManager.getDefaultSharedPreferences(applicationContext)
|
||||||
|
|
||||||
prefs.edit { putBoolean("use_generated_key", false) }
|
prefs.edit { putBoolean("use_generated_key", false) }
|
||||||
|
getEncryptedPrefs("git_operation").edit { remove("ssh_key_local_passphrase") }
|
||||||
|
|
||||||
// Delete the public key from generation
|
// Delete the public key from generation
|
||||||
File("""$filesDir/.ssh_key.pub""").delete()
|
File("""$filesDir/.ssh_key.pub""").delete()
|
||||||
|
Reference in New Issue
Block a user