mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove the Pillow dependency completely.
This commit is contained in:
@@ -43,8 +43,6 @@ pywinpty==2.0.*; sys_platform=="win32"
|
|||||||
Authlib==1.2.*
|
Authlib==1.2.*
|
||||||
pyotp==2.*
|
pyotp==2.*
|
||||||
qrcode==7.*
|
qrcode==7.*
|
||||||
Pillow==9.*; python_version <= '3.7'
|
|
||||||
Pillow==10.*; python_version > '3.7'
|
|
||||||
boto3==1.28.*
|
boto3==1.28.*
|
||||||
botocore==1.31.*
|
botocore==1.31.*
|
||||||
urllib3==1.26.*
|
urllib3==1.26.*
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class TOTPAuthenticator(BaseMFAuth):
|
|||||||
|
|
||||||
img = qrcode.make(uri)
|
img = qrcode.make(uri)
|
||||||
buffered = BytesIO()
|
buffered = BytesIO()
|
||||||
img.save(buffered, format="JPEG")
|
img.save(buffered)
|
||||||
img_base64 = base64.b64encode(buffered.getvalue())
|
img_base64 = base64.b64encode(buffered.getvalue())
|
||||||
|
|
||||||
return dict(
|
return dict(
|
||||||
|
|||||||
Reference in New Issue
Block a user