Fix crash when load Argon2id Databases.

This commit is contained in:
Michael Starke
2021-01-15 12:58:45 +01:00
parent b58d5179a2
commit e27526b399
7 changed files with 72 additions and 56 deletions

View File

@@ -54,7 +54,7 @@
BOOL showTOTP = entry.hasTimeOTP;
self.view.hidden = !showTOTP;
if(showTOTP) {
self.generator = [[KPKTimeOTPGenerator alloc] initWithEntry:entry];
self.generator = [[KPKTimeOTPGenerator alloc] initWithAttributes:entry.attributes];
self.generator.time = NSDate.date.timeIntervalSince1970;
NSString *stringValue = self.generator.string;
self.toptValueTextField.stringValue = stringValue ? stringValue : @"";