diff options
Diffstat (limited to '')
-rw-r--r-- | src/auth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs index 7cd11fe..762746b 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -53,7 +53,7 @@ pub fn parse_basic_auth( }) } -/// Verify authentication +/// Return `true` if `basic_auth` is matches any of `required_auth` pub fn match_auth(basic_auth: BasicAuthParams, required_auth: &[RequiredAuth]) -> bool { required_auth.iter().any( |RequiredAuth { username, password }| |