fix(api): skip user model password field
1 files changed, 3 insertions(+), 0 deletions(-) M api/src/models/user.rs
M api/src/models/user.rs => api/src/models/user.rs +3 -0
@@ 20,6 20,9 @@ pub(crate) struct User { pub updated_at: NaiveDateTime, pub username: String, pub email: String, + #[allow(dead_code)] + #[serde(skip_serializing)] + pub password: String, } #[derive(Deserialize, Insertable)]