Update ip.go

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
# Conflicts:
#	dyndns/nswrapper/ip.go
This commit is contained in:
AuxXxilium 2024-08-05 19:23:42 +02:00
parent 4556a66f25
commit c7a13b40b1

View File

@ -16,6 +16,7 @@ type Host struct {
LastUpdate time.Time `form:"lastupdate"`
UserName string `gorm:"unique" form:"username" validate:"min=3"`
Password string `form:"password" validate:"min=8"`
Desc string `form:"desc"`
}
// UpdateHost updates all fields of a host entry
@ -31,6 +32,7 @@ func (h *Host) UpdateHost(updateHost *Host) (updateRecord bool) {
h.Ttl = updateHost.Ttl
h.UserName = updateHost.UserName
h.Password = updateHost.Password
h.Desc = updateHost.Desc
return
}