0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-06 05:35:29 +00:00

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 
This commit is contained in:
Dan Brown 2021-09-13 14:23:54 +01:00
parent 2eafd8335c
commit 8565187138
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9

View file

@ -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);