Fixed using TOTP instead of SteamOTP generator when using entry as source for view

This commit is contained in:
Michael Starke 2021-10-29 14:49:54 +02:00
parent f1bf8ab9f6
commit 3ea790eeb3
1 changed files with 6 additions and 1 deletions

View File

@ -216,7 +216,12 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
case MPOTPUpdateSourceEntry:
if(self.representedEntry.hasTimeOTP) {
self.generator = [[KPKTimeOTPGenerator alloc] initWithAttributes:self.representedEntry.attributes];
if(self.representedEntry.hasSteamOTP) {
self.generator = [[KPKSteamOTPGenerator alloc] initWithAttributes:self.representedEntry.attributes];
}
else {
self.generator = [[KPKTimeOTPGenerator alloc] initWithAttributes:self.representedEntry.attributes];
}
}
else {
self.generator = [[KPKTimeOTPGenerator alloc] init];