Move todo to correct file

This commit is contained in:
Kristoffer Dalby 2022-04-24 21:12:45 +01:00
parent 7ef8cd881c
commit 8504d0d8ba
2 changed files with 2 additions and 1 deletions

2
api.go
View File

@ -133,6 +133,8 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
return
}
// TODO(kradalby): We need these fields to be unique, we need to add a hash or something at the end.
normalizedHostname, err := NormalizeToFQDNRules(
req.Hostinfo.Hostname,
h.cfg.OIDC.StripEmaildomain,

View File

@ -237,7 +237,6 @@ func (n *Namespace) toProto() *v1.Namespace {
}
}
// TODO(kradalby): We need these fields to be unique, we need to add a hash or something at the end.
// NormalizeToFQDNRules will replace forbidden chars in namespace
// it can also return an error if the namespace doesn't respect RFC 952 and 1123.
func NormalizeToFQDNRules(name string, stripEmailDomain bool) (string, error) {