fix(api): redact profile password hash

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
naiba
2026-06-28 01:09:23 +00:00
co-authored by naiba/CloudCode
parent 015c49c8e3
commit e1045ffd30
2 changed files with 96 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const DefaultAgentSecretLength = 32
type User struct {
Common
Username string `json:"username,omitempty" gorm:"uniqueIndex"`
Password string `json:"password,omitempty" gorm:"type:char(72)"`
Password string `json:"-" gorm:"type:char(72)"`
Role Role `json:"role"`
AgentSecret string `json:"agent_secret,omitempty" gorm:"type:char(32)"`
RejectPassword bool `json:"reject_password,omitempty"`