Skip to content

Commit 0f8b4b5

Browse files
authored
allow usernames with min 3 chars
1 parent 6d16ce7 commit 0f8b4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dyndns/model/host.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Host struct {
1414
Ip string `form:"ip" validate:"omitempty,ipv4"`
1515
Ttl int `form:"ttl" validate:"required,min=20,max=86400"`
1616
LastUpdate time.Time `form:"lastupdate"`
17-
UserName string `gorm:"unique" form:"username" validate:"min=8"`
17+
UserName string `gorm:"unique" form:"username" validate:"min=3"`
1818
Password string `form:"password" validate:"min=8"`
1919
}
2020

0 commit comments

Comments
 (0)