aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/auth.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.rs b/src/auth.rs
index efdeefb..82b407c 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -90,10 +90,10 @@ fn handle_auth(req: &HttpRequest) -> Result<(), ContextualError> {
Ok(cred) => match match_auth(&cred, required_auth) {
true => {
req.extensions_mut().insert(CurrentUser {
- name: cred.username
+ name: cred.username,
});
Ok(())
- },
+ }
false => Err(ContextualError::InvalidHttpCredentials),
},
Err(_) => Err(ContextualError::RequireHttpCredentials),