forked from MarseyWorld/MarseyWorld
2fa minor change
parent
9b50f727b2
commit
90d5399de1
|
@ -595,7 +595,7 @@ def mfa_qr(v:User, secret:str):
|
||||||
qr = qrcode.QRCode(
|
qr = qrcode.QRCode(
|
||||||
error_correction=qrcode.constants.ERROR_CORRECT_L
|
error_correction=qrcode.constants.ERROR_CORRECT_L
|
||||||
)
|
)
|
||||||
qr.add_data(x.provisioning_uri(v.username, issuer_name=SITE_NAME))
|
qr.add_data(x.provisioning_uri(v.username, issuer_name=SITE))
|
||||||
img = qr.make_image(fill_color="#000000", back_color="white")
|
img = qr.make_image(fill_color="#000000", back_color="white")
|
||||||
|
|
||||||
mem = io.BytesIO()
|
mem = io.BytesIO()
|
||||||
|
|
Loading…
Reference in New Issue