Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions apps/auth-service/src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,7 @@ impl WebApplication {

/// The page's query, as `T`. A malformed one is the request's fault.
fn query<T: DeserializeOwned>(cx: &Cx) -> std::result::Result<T, OAuthError> {
parse_query_params(cx).map_err(|error| {
OAuthCode::InvalidRequest
.reject_with(format!("the request is malformed: {error}"), error)
})
parse_query_params(cx).map_err(|error| OAuthError::malformed("the request", error))
}

/// The form posted to the page, as `T`. A malformed one is the request's fault.
Expand Down