mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-29 09:39:58 +00:00
fix auth error
This commit is contained in:
@ -168,7 +168,8 @@ impl<P: Policy + 'static, D: 'static + Clone> FromRequest for GuardedData<P, D>
|
|||||||
None => err(AuthenticationError::IrretrievableState.into()),
|
None => err(AuthenticationError::IrretrievableState.into()),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err(AuthenticationError::InvalidToken(String::from("hello")).into())
|
let token = token.to_str().unwrap_or("unknown").to_string();
|
||||||
|
err(AuthenticationError::InvalidToken(token).into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => err(AuthenticationError::MissingAuthorizationHeader.into()),
|
None => err(AuthenticationError::MissingAuthorizationHeader.into()),
|
||||||
|
Reference in New Issue
Block a user