diff --git a/src/models/user.rs b/src/models/user.rs index aa7fe36f..ef339756 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -81,6 +81,9 @@ pub struct User { #[validate(length(min = 3, max = 254))] pub full_name: String, #[validate(email)] + #[serde(skip)] + // Don't send backing email address of users, applications could + // accidentally use this pub email: String, #[serde(skip)] pub pending_email: Option,