mirror of
https://github.com/kemko/PowerDNS-Admin.git
synced 2026-01-01 15:45:45 +03:00
Use SvgPathImage in QR Code generation to remove white lines. #388
This commit is contained in:
@@ -1627,7 +1627,7 @@ def qrcode():
|
||||
return redirect(url_for('index'))
|
||||
|
||||
# render qrcode for FreeTOTP
|
||||
img = qrc.make(current_user.get_totp_uri(), image_factory=qrc_svg.SvgImage)
|
||||
img = qrc.make(current_user.get_totp_uri(), image_factory=qrc_svg.SvgPathImage)
|
||||
stream = BytesIO()
|
||||
img.save(stream)
|
||||
return stream.getvalue(), 200, {
|
||||
|
||||
Reference in New Issue
Block a user