Skip to content

Commit 8e52325

Browse files
committed
fix(user): fail to change password #852
1 parent 7049599 commit 8e52325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type User struct {
1010
Model
1111

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

0 commit comments

Comments
 (0)