From f5e8b4093a1527967423a3af70f2b95d4b05008f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 30 Dec 2021 23:40:37 +0100 Subject: prototype bots pages --- planetwars-server/src/routes/users.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'planetwars-server/src/routes/users.rs') diff --git a/planetwars-server/src/routes/users.rs b/planetwars-server/src/routes/users.rs index fc77d7b..bc30b28 100644 --- a/planetwars-server/src/routes/users.rs +++ b/planetwars-server/src/routes/users.rs @@ -19,6 +19,7 @@ where async fn from_request(req: &mut RequestParts) -> Result { let conn = DatabaseConnection::from_request(req).await?; + let TypedHeader(Authorization(bearer)) = AuthorizationHeader::from_request(req) .await .map_err(|_| (StatusCode::UNAUTHORIZED, "".to_string()))?; -- cgit v1.2.3