fix last commit (#6952)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2024-01-22 16:40:23 +08:00 committed by GitHub
parent 016f4abb32
commit 669e8d5f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -617,7 +617,7 @@ impl UI {
}
fn generate_2fa_img_src(&self, data: String) -> String {
let v = qrcode_generator::to_png_to_vec(data, qrcode_generator::QrCodeEcc::Low, 64)
let v = qrcode_generator::to_png_to_vec(data, qrcode_generator::QrCodeEcc::Low, 128)
.unwrap_or_default();
let s = hbb_common::sodiumoxide::base64::encode(
v,

View File

@ -1012,7 +1012,7 @@ class PasswordArea: Reactor.Component {
return translate('wrong-2fa-code');
}
me.update();
}, 320);
}, 400);
}
}
}