aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 92157c9..ef16b0c 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -2,7 +2,7 @@ use actix_web::{dev::ServiceRequest, HttpMessage};
use actix_web_httpauth::extractors::basic::BasicAuth;
use sha2::{Digest, Sha256, Sha512};
-use crate::errors::ContextualError;
+use crate::errors::RuntimeError;
#[derive(Clone, Debug)]
/// HTTP Basic authentication parameters
@@ -86,7 +86,7 @@ pub async fn handle_auth(
if match_auth(&cred.into(), required_auth) {
Ok(req)
} else {
- Err((ContextualError::InvalidHttpCredentials.into(), req))
+ Err((RuntimeError::InvalidHttpCredentials.into(), req))
}
}