fix: stabilize container validator startup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user