mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 23:59:34 +00:00
Fixed using TOTP instead of SteamOTP generator when using entry as source for view
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user