Skip to content

Commit

Permalink
fix: ignore salt on marshal model.User
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 16, 2023
1 parent 1aa024e commit e9bdb91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ type User struct {
ID uint `json:"id" gorm:"primaryKey"` // unique key
Username string `json:"username" gorm:"unique" binding:"required"` // username
PwdHash string `json:"-"` // password hash
Salt string // unique salt
Password string `json:"password"` // password
BasePath string `json:"base_path"` // base path
Role int `json:"role"` // user's role
Salt string `json:"-"` // unique salt
Password string `json:"password"` // password
BasePath string `json:"base_path"` // base path
Role int `json:"role"` // user's role
Disabled bool `json:"disabled"`
// Determine permissions by bit
// 0: can see hidden files
Expand Down

0 comments on commit e9bdb91

Please sign in to comment.