We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7049599 commit 8e52325Copy full SHA for 8e52325
model/user.go
@@ -10,7 +10,7 @@ type User struct {
10
Model
11
12
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"`
+ Password string `json:"-" cosy:"json:password;add:required,max=20;update:omitempty,max=20"`
14
Status bool `json:"status" gorm:"default:1"`
15
OTPSecret []byte `json:"-" gorm:"type:blob"`
16
EnabledTwoFA bool `json:"enabled_2fa" gorm:"-"`
0 commit comments