Skip to content

Commit

Permalink
fix(user): fail to change password #852
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Feb 6, 2025
1 parent 7049599 commit 8e52325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type User struct {
Model

Name string `json:"name" cosy:"add:max=20;update:omitempty,max=20;list:fussy;db_unique"`
Password string `json:"-" cosy:"add:required,max=20;update:omitempty,max=20"`
Password string `json:"-" cosy:"json:password;add:required,max=20;update:omitempty,max=20"`
Status bool `json:"status" gorm:"default:1"`
OTPSecret []byte `json:"-" gorm:"type:blob"`
EnabledTwoFA bool `json:"enabled_2fa" gorm:"-"`
Expand Down

0 comments on commit 8e52325

Please sign in to comment.