Skip to content

Commit f650124

Browse files
authored
Merge pull request #21 from benjaminbear/allow_short_usernames
allow usernames with min 3 chars
2 parents 1386132 + 0f8b4b5 commit f650124

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)