Skip to content

Commit

Permalink
Fixed broken QR code parsing in TOTP wizzard
Browse files Browse the repository at this point in the history
  • Loading branch information
mstarke committed May 24, 2022
1 parent cbb4cea commit 360eb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MacPass/MPTOTPSetupViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ - (void)_updateView:(MPOTPUpdateSource)source {
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:{
Expand Down

0 comments on commit 360eb23

Please sign in to comment.