fix: missed update user's password

This commit is contained in:
Andy Hsu
2023-08-07 18:51:54 +08:00
parent 353dd7f796
commit a797494aa3
3 changed files with 9 additions and 3 deletions

View File

@ -22,7 +22,7 @@ type User struct {
Username string `json:"username" gorm:"unique" binding:"required"` // username
PwdHash string `json:"-"` // password hash
Salt string // unique salt
Password string `json:"-"` // Deprecated password
Password string `json:"password"` // password
BasePath string `json:"base_path"` // base path
Role int `json:"role"` // user's role
Disabled bool `json:"disabled"`