Remove length validation for entity id input (#30689)

This commit is contained in:
Luke Heath 2025-07-09 16:07:52 -06:00 committed by GitHub
parent c7cbf09c8b
commit 76119a5c68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 14 deletions

View file

@ -111,17 +111,6 @@ describe("IdPSection helpers", () => {
entity_id: "Entity ID must be present.",
});
expect(
validateFormDataIdp({
entity_id: "enti",
idp_name: "idpImageUrl",
metadata: "metadata",
metadata_url: "https://metadataUrl.com",
})
).toEqual({
entity_id: "Entity ID must be 5 or more characters.",
});
expect(
validateFormDataIdp({
entity_id: "entityId",

View file

@ -43,9 +43,6 @@ const errorEntityId = (data: IFormDataIdp) => {
if (!data.entity_id) {
return "Entity ID must be present.";
}
if (data.entity_id?.length < 5) {
return "Entity ID must be 5 or more characters.";
}
return "";
};