From e26c33533f5a2ccca349bc74d1a8c1b4bf33f117 Mon Sep 17 00:00:00 2001 From: Sphereso Date: Thu, 11 Jul 2024 23:07:55 +0200 Subject: [PATCH] backend: dont send password --- crates/backend/src/controller/user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/backend/src/controller/user.rs b/crates/backend/src/controller/user.rs index e8b8657..d28c557 100644 --- a/crates/backend/src/controller/user.rs +++ b/crates/backend/src/controller/user.rs @@ -67,7 +67,7 @@ impl UserController { .await .map_err(ErrorInternalServerError)? .ok_or(ErrorNotFound("Not Found"))?; - Ok(web::Json(user)) + Ok(web::Json(UserWithoutPassword::from(user))) } pub async fn create_user(