mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 02:39:30 +00:00
Fixed broken QR code parsing in TOTP wizzard
This commit is contained in:
@@ -205,7 +205,7 @@ typedef NS_ENUM(NSUInteger, MPOTPType) {
|
|||||||
case MPOTPUpdateSourceQRImage: {
|
case MPOTPUpdateSourceQRImage: {
|
||||||
NSString *qrCodeString = self.qrCodeImageView.image.QRCodeString;
|
NSString *qrCodeString = self.qrCodeImageView.image.QRCodeString;
|
||||||
NSURL *otpURL = [NSURL URLWithString: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;
|
break;
|
||||||
}
|
}
|
||||||
case MPOTPUpdateSourceURL:{
|
case MPOTPUpdateSourceURL:{
|
||||||
|
|||||||
Reference in New Issue
Block a user