]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2eafd83
)
Added border to generated TOTP QR code
author
Dan Brown
<redacted>
Mon, 13 Sep 2021 13:23:54 +0000
(14:23 +0100)
committer
Dan Brown
<redacted>
Mon, 13 Sep 2021 13:23:54 +0000
(14:23 +0100)
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
patch
|
blob
|
history
diff --git
a/app/Auth/Access/Mfa/TotpService.php
b/app/Auth/Access/Mfa/TotpService.php
index a3e9fc82754ae14dd8c9a6b14c19f11ad24fffdc..0d9bd37ce3810f789e5ca52dee307a4fdf8865e9 100644
(file)
--- 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);