From 85651871388f2051cc7ad1279f6aeeff8d820848 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 13 Sep 2021 14:23:54 +0100 Subject: [PATCH] Added border to generated TOTP QR code To fix QR code not being scannable when in dark mode due to lack of border matching background of QR code. Fixes #2925 --- app/Auth/Access/Mfa/TotpService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Auth/Access/Mfa/TotpService.php b/app/Auth/Access/Mfa/TotpService.php index a3e9fc827..0d9bd37ce 100644 --- a/app/Auth/Access/Mfa/TotpService.php +++ b/app/Auth/Access/Mfa/TotpService.php @@ -54,7 +54,7 @@ class TotpService return (new Writer( new ImageRenderer( - new RendererStyle(192, 0, null, null, $color), + new RendererStyle(192, 4, null, null, $color), new SvgImageBackEnd() ) ))->writeString($url);