Fixed using TOTP instead of SteamOTP generator when using entry as source for view
This commit is contained in:
parent
f1bf8ab9f6
commit
3ea790eeb3
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue