We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed712e commit b447490Copy full SHA for b447490
1 file changed
cabotage/server/user/views.py
@@ -5668,7 +5668,10 @@ def account_security_qr():
5668
if not uri.startswith("otpauth://"):
5669
abort(400)
5670
5671
- img = qrcode.make(uri, image_factory=qrcode.image.svg.SvgPathImage)
+ class TotpQrImage(qrcode.image.svg.SvgPathImage):
5672
+ background = "#ffffff"
5673
+
5674
+ img = qrcode.make(uri, image_factory=TotpQrImage)
5675
buf = io.BytesIO()
5676
img.save(buf)
5677
resp = make_response(buf.getvalue())
0 commit comments