mirror of
https://github.com/AuxXxilium/docker-ddns-server.git
synced 2024-11-23 23:00:59 +07:00
allow usernames with min 3 chars
This commit is contained in:
parent
6d16ce7b3f
commit
0f8b4b578d
@ -14,7 +14,7 @@ type Host struct {
|
|||||||
Ip string `form:"ip" validate:"omitempty,ipv4"`
|
Ip string `form:"ip" validate:"omitempty,ipv4"`
|
||||||
Ttl int `form:"ttl" validate:"required,min=20,max=86400"`
|
Ttl int `form:"ttl" validate:"required,min=20,max=86400"`
|
||||||
LastUpdate time.Time `form:"lastupdate"`
|
LastUpdate time.Time `form:"lastupdate"`
|
||||||
UserName string `gorm:"unique" form:"username" validate:"min=8"`
|
UserName string `gorm:"unique" form:"username" validate:"min=3"`
|
||||||
Password string `form:"password" validate:"min=8"`
|
Password string `form:"password" validate:"min=8"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user