Fix wrong Keychain key string

This caused the private PGP key passphrase to remain unchanged although the key itself was removed.
This commit is contained in:
Danny Moesch 2019-06-29 10:31:30 +02:00 committed by Mingshen Sun
parent b806175842
commit 47c9af0127

View file

@ -848,7 +848,7 @@ public class PasswordStore {
SharedDefaults.remove(.pgpKeySource)
SharedDefaults.remove(.pgpPrivateKeyURL)
SharedDefaults.remove(.pgpPublicKeyURL)
AppKeychain.removeContent(for: ".pgpKeyPassphrase")
AppKeychain.removeContent(for: "pgpKeyPassphrase")
AppKeychain.removeContent(for: PGPKeyType.PUBLIC.rawValue)
AppKeychain.removeContent(for: PGPKeyType.PRIVATE.rawValue)
publicKey = nil