backend: dont send password
This commit is contained in:
parent
9f42d387c4
commit
e26c33533f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ impl UserController {
|
||||||
.await
|
.await
|
||||||
.map_err(ErrorInternalServerError)?
|
.map_err(ErrorInternalServerError)?
|
||||||
.ok_or(ErrorNotFound("Not Found"))?;
|
.ok_or(ErrorNotFound("Not Found"))?;
|
||||||
Ok(web::Json(user))
|
Ok(web::Json(UserWithoutPassword::from(user)))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn create_user(
|
pub async fn create_user(
|
||||||
|
|
Loading…
Reference in a new issue