mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Remove length validation for entity id input (#30689)
This commit is contained in:
parent
c7cbf09c8b
commit
76119a5c68
2 changed files with 0 additions and 14 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 "";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue