Reset SSH passphrase after SSH key import (#885)
This commit is contained in:
parent
889208b264
commit
6b5984dfe6
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue