From efda8ff5bdff91d684b6304e6ca7b2850dce2e6f Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 1 Mar 2020 14:16:24 -0800 Subject: [PATCH] Specify QR code error correction level explicitly fix #1332 --- BTCPayServer/Views/Home/BitpayTranslator.cshtml | 3 ++- BTCPayServer/Views/Manage/EnableAuthenticator.cshtml | 3 ++- BTCPayServer/Views/Server/CLightningRestServices.cshtml | 3 ++- BTCPayServer/Views/Server/LightningWalletServices.cshtml | 3 ++- BTCPayServer/Views/Server/LndServices.cshtml | 3 ++- BTCPayServer/Views/Server/P2PService.cshtml | 3 ++- BTCPayServer/Views/Server/RPCService.cshtml | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/BTCPayServer/Views/Home/BitpayTranslator.cshtml b/BTCPayServer/Views/Home/BitpayTranslator.cshtml index 302563c85..3c2154301 100644 --- a/BTCPayServer/Views/Home/BitpayTranslator.cshtml +++ b/BTCPayServer/Views/Home/BitpayTranslator.cshtml @@ -55,7 +55,8 @@ text: @Safe.Json(Model.BitcoinUri), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); $("#qrCode > img").css({ "margin": "auto" }); diff --git a/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml b/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml index 1785183e6..a0b4d6c49 100644 --- a/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml +++ b/BTCPayServer/Views/Manage/EnableAuthenticator.cshtml @@ -56,7 +56,8 @@ text: @Safe.Json(Model.AuthenticatorUri), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); $("#qrCode > img").css({ "margin": "auto" }); diff --git a/BTCPayServer/Views/Server/CLightningRestServices.cshtml b/BTCPayServer/Views/Server/CLightningRestServices.cshtml index 2aab98834..4c2b66dd6 100644 --- a/BTCPayServer/Views/Server/CLightningRestServices.cshtml +++ b/BTCPayServer/Views/Server/CLightningRestServices.cshtml @@ -158,7 +158,8 @@ text: @Safe.Json(Model.QRCode), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); } diff --git a/BTCPayServer/Views/Server/LightningWalletServices.cshtml b/BTCPayServer/Views/Server/LightningWalletServices.cshtml index a1ab56705..156068b8f 100644 --- a/BTCPayServer/Views/Server/LightningWalletServices.cshtml +++ b/BTCPayServer/Views/Server/LightningWalletServices.cshtml @@ -73,7 +73,8 @@ text: @Safe.Json(Model.ServiceLink), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); } diff --git a/BTCPayServer/Views/Server/LndServices.cshtml b/BTCPayServer/Views/Server/LndServices.cshtml index 1dead47e2..d50f49d0d 100644 --- a/BTCPayServer/Views/Server/LndServices.cshtml +++ b/BTCPayServer/Views/Server/LndServices.cshtml @@ -187,7 +187,8 @@ text: @Safe.Json(Model.QRCode), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); } diff --git a/BTCPayServer/Views/Server/P2PService.cshtml b/BTCPayServer/Views/Server/P2PService.cshtml index cad8fb1de..22501e34e 100644 --- a/BTCPayServer/Views/Server/P2PService.cshtml +++ b/BTCPayServer/Views/Server/P2PService.cshtml @@ -101,7 +101,8 @@ text: @Safe.Json(Model.ServiceLink), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); } diff --git a/BTCPayServer/Views/Server/RPCService.cshtml b/BTCPayServer/Views/Server/RPCService.cshtml index 5e576f01b..6efe9657a 100644 --- a/BTCPayServer/Views/Server/RPCService.cshtml +++ b/BTCPayServer/Views/Server/RPCService.cshtml @@ -98,7 +98,8 @@ text: @Safe.Json(Model.ServiceLink), width: 200, height: 200, - useSVG: true + useSVG: true, + correctLevel : QRCode.CorrectLevel.M }); }