From 360eb23692870901488958df5cb0d431d370a4d2 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 24 May 2022 16:12:59 +0200 Subject: [PATCH] Fixed broken QR code parsing in TOTP wizzard --- MacPass/MPTOTPSetupViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPTOTPSetupViewController.m b/MacPass/MPTOTPSetupViewController.m index 9581b0b6..296aa6e3 100644 --- a/MacPass/MPTOTPSetupViewController.m +++ b/MacPass/MPTOTPSetupViewController.m @@ -205,7 +205,7 @@ typedef NS_ENUM(NSUInteger, MPOTPType) { case MPOTPUpdateSourceQRImage: { NSString *qrCodeString = self.qrCodeImageView.image.QRCodeString; NSURL *otpURL = [NSURL URLWithString:qrCodeString]; - self.generator = otpURL.isSteamOTPURL ? [[KPKSteamOTPGenerator alloc] initWithURL:self.urlTextField.stringValue] : [[KPKTimeOTPGenerator alloc] initWithURL:self.urlTextField.stringValue]; + self.generator = otpURL.isSteamOTPURL ? [[KPKSteamOTPGenerator alloc] initWithURL:qrCodeString] : [[KPKTimeOTPGenerator alloc] initWithURL:qrCodeString]; break; } case MPOTPUpdateSourceURL:{