QR tweaks: WebUI only creates QR's with zipped keys now.
This commit is contained in:
@@ -216,9 +216,7 @@ def generate():
|
|||||||
|
|
||||||
if creds.rsa_key_pem and HAS_QRCODE:
|
if creds.rsa_key_pem and HAS_QRCODE:
|
||||||
# Check if key fits in QR code
|
# Check if key fits in QR code
|
||||||
if can_fit_in_qr(creds.rsa_key_pem, compress=False):
|
if can_fit_in_qr(creds.rsa_key_pem, compress=True):
|
||||||
qr_needs_compression = False
|
|
||||||
elif can_fit_in_qr(creds.rsa_key_pem, compress=True):
|
|
||||||
qr_needs_compression = True
|
qr_needs_compression = True
|
||||||
else:
|
else:
|
||||||
qr_too_large = True
|
qr_too_large = True
|
||||||
|
|||||||
Reference in New Issue
Block a user