Skip to content

Commit

Permalink
Obfuscate passwords in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Drzymała committed Feb 1, 2024
1 parent 54b3d56 commit 4c5c9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::{Deserialize, Serializer, Serialize};
use std::ops::Deref;

/// String wrapper that serializes to 6 asterisks
#[derive(Clone, Debug, Deserialize, Display, Hash, PartialEq, Eq)]
#[derive(Clone, Deserialize, Display, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "pgsql", derive(diesel_derive_newtype::DieselNewType))]
#[cfg_attr(feature = "paperclip", derive(paperclip::actix::Apiv2Schema))]
pub struct Password(pub String);
Expand Down

0 comments on commit 4c5c9b8

Please sign in to comment.