add remove PGP key passphrase to removePGPKeys function

This commit is contained in:
Bob Sun 2017-02-19 22:26:37 +08:00
parent 65a31a803e
commit 9eaf962c96
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -64,12 +64,12 @@ class Utils {
removeFileIfExists(atPath: Globals.pgpPublicKeyPath)
removeFileIfExists(atPath: Globals.pgpPrivateKeyPath)
Defaults.remove(.pgpKeySource)
Defaults.remove(.pgpKeyPassphrase)
Defaults.remove(.pgpPublicKeyArmor)
Defaults.remove(.pgpPrivateKeyArmor)
Defaults.remove(.pgpPrivateKeyURL)
Defaults.remove(.pgpPublicKeyURL)
Defaults.remove(.pgpKeyID)
Utils.removeKeychain(name: ".pgpKeyPassphrase")
}
static func getPasswordFromKeychain(name: String) -> String? {