feat (user): add sanitize to hide password for log
This commit is contained in:
@@ -75,3 +75,9 @@ func ToResponseList(users []User) []ResponseDto {
|
||||
}
|
||||
return resp
|
||||
}
|
||||
|
||||
func (c CreateDto) Sanitize() CreateDto {
|
||||
sanitized := c
|
||||
sanitized.Password = "[REDACTED]"
|
||||
return sanitized
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user