mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 09:59:43 +00:00
Steam OTP display added.
This commit is contained in:
@@ -73,7 +73,8 @@
|
||||
BOOL showTOTP = entry.hasTimeOTP;
|
||||
self.view.hidden = !showTOTP;
|
||||
if(showTOTP) {
|
||||
self.generator = [[KPKTimeOTPGenerator alloc] initWithAttributes:entry.attributes];
|
||||
|
||||
self.generator = entry.hasSteamOTP ? [[KPKSteamOTPGenerator alloc] initWithAttributes:entry.attributes] : [[KPKTimeOTPGenerator alloc] initWithAttributes:entry.attributes];
|
||||
self.generator.time = NSDate.date.timeIntervalSince1970;
|
||||
NSString *stringValue = self.generator.string;
|
||||
self.toptValueTextField.stringValue = stringValue ? stringValue : @"";
|
||||
|
||||
Reference in New Issue
Block a user