From 0f8b4b578db441af2baa7c961f3b27bfec6cf18e Mon Sep 17 00:00:00 2001 From: benjaminbear <56151965+benjaminbear@users.noreply.github.com> Date: Sun, 29 May 2022 15:44:28 +0200 Subject: [PATCH] allow usernames with min 3 chars --- dyndns/model/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyndns/model/host.go b/dyndns/model/host.go index 25df51a..ea5e349 100644 --- a/dyndns/model/host.go +++ b/dyndns/model/host.go @@ -14,7 +14,7 @@ type Host struct { Ip string `form:"ip" validate:"omitempty,ipv4"` Ttl int `form:"ttl" validate:"required,min=20,max=86400"` 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"` }