diff --git a/Cargo.lock b/Cargo.lock index 308e4af..e16d1ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1124,6 +1124,7 @@ dependencies = [ "minreq", "once_cell", "ping", + "qrcode", "regex", "reqwest", "rust-ini", @@ -2137,6 +2138,12 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9e1dcb320d6839f6edb64f7a4a59d39b30480d4d1765b56873f7c858538a5fe" +[[package]] +name = "qrcode" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec" + [[package]] name = "quickcheck" version = "1.0.3" diff --git a/Cargo.toml b/Cargo.toml index f4e9342..c647267 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ path = "src/utils.rs" hbb_common = { path = "libs/hbb_common" } tokio = { version = "1", features = ["fs", "io-util"] } totp-rs = { version = "5.4", default-features = false } +qrcode = { version = "0.14", default-features = false, features = ["svg"] } lettre = { version = "0.10", default-features = false, features = ["smtp-transport", "tokio1-rustls-tls", "builder"] } toml = "0.7" serde_derive = "1.0" diff --git a/admin_ui/index.html b/admin_ui/index.html index fbcbdb2..e01622b 100644 --- a/admin_ui/index.html +++ b/admin_ui/index.html @@ -46,7 +46,9 @@ Deploy -