Remove the Pillow dependency completely.

This commit is contained in:
Aditya Toshniwal
2023-10-05 12:40:29 +05:30
parent b4f517f7ff
commit 078a959e3d
2 changed files with 1 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ class TOTPAuthenticator(BaseMFAuth):
img = qrcode.make(uri)
buffered = BytesIO()
img.save(buffered, format="JPEG")
img.save(buffered)
img_base64 = base64.b64encode(buffered.getvalue())
return dict(