mirror of
https://github.com/dkmstr/openuds.git
synced 2025-03-13 08:58:35 +03:00
small fix for pylance complain
This commit is contained in:
parent
e8022389fb
commit
bcdbfa67d7
@ -164,7 +164,7 @@ class TOTP_MFA(mfas.MFA):
|
||||
uri = totp.provisioning_uri()
|
||||
img = qrcode.make(uri)
|
||||
imgByteStream = io.BytesIO()
|
||||
img.save(imgByteStream, format='PNG')
|
||||
img.save(imgByteStream, format='PNG') # type: ignore # pylance complains abot format, but it is ok
|
||||
# Convert to base64 to be used in html img tag
|
||||
imgByteArr = imgByteStream.getvalue()
|
||||
imgData = 'data:image/png;base64,' + base64.b64encode(imgByteArr).decode(
|
||||
|
Loading…
x
Reference in New Issue
Block a user