mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
refactor: user curd
This commit is contained in:
parent
80f01e61d3
commit
465eae9858
19 changed files with 1601 additions and 1881 deletions
|
@ -9,8 +9,8 @@ import (
|
|||
type User struct {
|
||||
Model
|
||||
|
||||
Name string `json:"name"`
|
||||
Password string `json:"-"`
|
||||
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"`
|
||||
Status bool `json:"status" gorm:"default:1"`
|
||||
OTPSecret []byte `json:"-" gorm:"type:blob"`
|
||||
EnabledTwoFA bool `json:"enabled_2fa" gorm:"-"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue