Remove length validation for entity id input (#30689)
This commit is contained in:
-11
@@ -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",
|
||||
|
||||
-3
@@ -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 "";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user