fix: ignore salt on marshal model.User
This commit is contained in:
parent
1aa024ed6b
commit
e9bdb91e01
@ -24,10 +24,10 @@ type User struct {
|
|||||||
ID uint `json:"id" gorm:"primaryKey"` // unique key
|
ID uint `json:"id" gorm:"primaryKey"` // unique key
|
||||||
Username string `json:"username" gorm:"unique" binding:"required"` // username
|
Username string `json:"username" gorm:"unique" binding:"required"` // username
|
||||||
PwdHash string `json:"-"` // password hash
|
PwdHash string `json:"-"` // password hash
|
||||||
Salt string // unique salt
|
Salt string `json:"-"` // unique salt
|
||||||
Password string `json:"password"` // password
|
Password string `json:"password"` // password
|
||||||
BasePath string `json:"base_path"` // base path
|
BasePath string `json:"base_path"` // base path
|
||||||
Role int `json:"role"` // user's role
|
Role int `json:"role"` // user's role
|
||||||
Disabled bool `json:"disabled"`
|
Disabled bool `json:"disabled"`
|
||||||
// Determine permissions by bit
|
// Determine permissions by bit
|
||||||
// 0: can see hidden files
|
// 0: can see hidden files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user