backend: dont send password

This commit is contained in:
Sphereso 2024-07-11 23:07:55 +02:00
parent 9f42d387c4
commit e26c33533f

View file

@ -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(