Tweak Password class

This commit is contained in:
Danny Moesch 2018-12-01 13:27:30 +01:00 committed by Bob Sun
parent 3cd8df310c
commit d4d8d7267a
3 changed files with 12 additions and 14 deletions

View file

@ -172,7 +172,7 @@ class ExtensionViewController: UIViewController, UITableViewDataSource, UITableV
let extensionItem = NSExtensionItem()
var returnDictionary = [OnePasswordExtensionKey.usernameKey: username,
OnePasswordExtensionKey.passwordKey: password]
if let totpPassword = decryptedPassword?.getOtp() {
if let totpPassword = decryptedPassword?.currentOtp {
returnDictionary[OnePasswordExtensionKey.totpKey] = totpPassword
}
extensionItem.attachments = [NSItemProvider(item: returnDictionary as NSSecureCoding, typeIdentifier: String(kUTTypePropertyList))]