mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
Delete HTTPS instead of SSH key password on error (#1060)
This commit is contained in:
parent
1ce3ef4ea3
commit
1093928d93
|
@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
- Password creation UI will scroll if it does not fit on the screen
|
- Password creation UI will scroll if it does not fit on the screen
|
||||||
- Git server protocol and authentication mode are only updated when explicitly saved
|
- Git server protocol and authentication mode are only updated when explicitly saved
|
||||||
|
- Delete stored HTTPS password on connection errors (such as failed authentication)
|
||||||
|
|
||||||
## [1.11.2] - 2020-08-24
|
## [1.11.2] - 2020-08-24
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ abstract class GitOperation(gitDir: File, internal val callingActivity: Fragment
|
||||||
open fun onError(err: Exception) {
|
open fun onError(err: Exception) {
|
||||||
// Clear various auth related fields on failure
|
// Clear various auth related fields on failure
|
||||||
callingActivity.getEncryptedPrefs("git_operation").edit {
|
callingActivity.getEncryptedPrefs("git_operation").edit {
|
||||||
remove(PreferenceKeys.SSH_KEY_LOCAL_PASSPHRASE)
|
remove(PreferenceKeys.HTTPS_PASSWORD)
|
||||||
}
|
}
|
||||||
callingActivity.sharedPrefs.edit { remove(PreferenceKeys.SSH_OPENKEYSTORE_KEYID) }
|
callingActivity.sharedPrefs.edit { remove(PreferenceKeys.SSH_OPENKEYSTORE_KEYID) }
|
||||||
d(err)
|
d(err)
|
||||||
|
|
Loading…
Reference in a new issue