fix: stabilize container validator startup

This commit is contained in:
richjohnrambo
2026-08-20 13:28:28 +08:00
parent 43e8af68d6
commit c09ea2ac53
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -491,6 +491,13 @@ func main() {
globals.immutableTagNS[name] = true
}
if len(vconf.Required) == 0 && name != "tel" {
// Optional product phone registration uses the tel validator even
// when it is not required for an auth level. Other validators stay
// disabled when they are not explicitly required.
continue
}
var reqLevels []auth.Level
for _, req := range vconf.Required {
lvl := auth.ParseAuthLevel(req)