Skip to content

Commit

Permalink
refactor: Mask password field in Post struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Laisky committed Sep 9, 2024
1 parent 66c6218 commit cd1a181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/blog/model/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Post struct {
// Menu menu of the post
Menu string `bson:"post_menu" json:"menu"`
// Password password of the post
Password string `bson:"post_password" json:"password"`
Password string `bson:"post_password" json:"-"`
// Category category of the post
Category primitive.ObjectID `bson:"category,omitempty" json:"category"`
// Tags tags of the post
Expand Down

0 comments on commit cd1a181

Please sign in to comment.