fix(api): redact profile password hash

Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba>
This commit is contained in:
naibaandnaiba/CloudCode committed 2026-06-28 01:09:23 +00:00
1 parent 015c49c8e3
commit e1045ffd30
2 files changed
+96 -1

No files matched your search

+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"`