aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml2
-rw-r--r--src/auth.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 4d94c59..b6db3c9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -244,16 +244,16 @@ dependencies = [
[[package]]
name = "actix-web-httpauth"
-version = "0.7.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a6dc1123f18b3548b9fe90c15e9bd77819701b047c6b62c152230aa39243d40d"
+checksum = "6dda62cf04bc3a9ad2ea8f314f721951cfdb4cdacec4e984d20e77c7bb170991"
dependencies = [
- "actix-service",
"actix-utils",
"actix-web",
"base64",
"futures-core",
"futures-util",
+ "log",
"pin-project-lite",
]
diff --git a/Cargo.toml b/Cargo.toml
index b8d90e4..4cc66f1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ panic = 'abort'
actix-web = "4"
actix-files = "0.6"
actix-multipart = "0.4"
-actix-web-httpauth = "0.7"
+actix-web-httpauth = "0.8"
maud = "0.23"
yansi = "0.5"
simplelog = "0.12"
diff --git a/src/auth.rs b/src/auth.rs
index b2c01e3..398fdda 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -16,7 +16,7 @@ impl From<BasicAuth> for BasicAuthParams {
fn from(auth: BasicAuth) -> Self {
Self {
username: auth.user_id().to_string(),
- password: auth.password().unwrap_or(&"".into()).to_string(),
+ password: auth.password().unwrap_or_default().to_string(),
}
}
}