Skip to content

Commit

Permalink
Skip seser on the pass field
Browse files Browse the repository at this point in the history
Skip deser the pass field for camera's that try to sent it in the user list
  • Loading branch information
QuantumEntangledAndy authored Jan 30, 2025
1 parent a30f403 commit 7a66473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/bc/xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ pub struct User {
#[serde(rename = "userName")]
pub user_name: String,
/// The password seems to only be included when creating or modifying a user
#[serde(rename = "password", skip_serializing_if = "Option::is_none")]
#[serde(rename = "password", skip_serializing_if = "Option::is_none", skip_deserializing)]
pub password: Option<String>,
/// The user_id does not seem to have a purpose. It is not included when creating a user.
#[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit 7a66473

Please sign in to comment.