QR tweaks: WebUI only creates QR's with zipped keys now.

This commit is contained in:
Aaron D. Lee
2025-12-29 11:45:01 -05:00
parent 0dc44e2d7b
commit 8b69c5d9e9

View File

@@ -216,9 +216,7 @@ def generate():
if creds.rsa_key_pem and HAS_QRCODE:
# Check if key fits in QR code
if can_fit_in_qr(creds.rsa_key_pem, compress=False):
qr_needs_compression = False
elif can_fit_in_qr(creds.rsa_key_pem, compress=True):
if can_fit_in_qr(creds.rsa_key_pem, compress=True):
qr_needs_compression = True
else:
qr_too_large = True