Allow idp_name to be 4 characters (#2106)

This commit is contained in:
William Theaker 2019-09-25 10:18:30 -07:00 committed by Zachary Wasserman
parent bf9ae6ec0e
commit a688b5cf5b

View file

@ -52,8 +52,8 @@ func validateSSOSettings(p kolide.AppConfigPayload, existing *kolide.AppConfig,
invalid.Append("idp_name", "required")
}
} else {
if len(*p.SSOSettings.IDPName) < 5 {
invalid.Append("idp_name", "must be 5 or more characters")
if len(*p.SSOSettings.IDPName) < 4 {
invalid.Append("idp_name", "must be 4 or more characters")
}
}
}