mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
Implement From<Basic>
for BasicAuth
(#327)
* implement `From<Basic>` for `BasicAuth` * update changelog --------- Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
@ -89,6 +89,12 @@ impl BasicAuth {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Basic> for BasicAuth {
|
||||
fn from(basic: Basic) -> Self {
|
||||
Self(basic)
|
||||
}
|
||||
}
|
||||
|
||||
impl FromRequest for BasicAuth {
|
||||
type Future = Ready<Result<Self, Self::Error>>;
|
||||
type Error = AuthenticationError<Challenge>;
|
||||
|
Reference in New Issue
Block a user