This commit is contained in:
asonix 2022-11-17 14:16:21 -06:00
parent bfc743354f
commit 9ac7854081

View file

@ -29,7 +29,7 @@ impl AdminConfig {
}
fn verify(&self, token: XApiToken) -> Result<bool, Error> {
Ok(bcrypt::verify(&token.0, &self.hashed_api_token).map_err(Error::bcrypt_verify)?)
bcrypt::verify(&token.0, &self.hashed_api_token).map_err(Error::bcrypt_verify)
}
}