Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

enhance message that is sent to users when sharing a secret

adilsonc281a7e66647
diff --git a/frontend/src/pages/public/ShareSecretPage/components/ShareSecretForm.tsx b/frontend/src/pages/public/ShareSecretPage/components/ShareSecretForm.tsx
index ef5884b713..9377ae48a9 100644
--- a/frontend/src/pages/public/ShareSecretPage/components/ShareSecretForm.tsx
+++ b/frontend/src/pages/public/ShareSecretPage/components/ShareSecretForm.tsx
@@ -155,8 +155,13 @@ export const ShareSecretForm = ({
if (processedEmails && processedEmails.length > 0) {
setSecretLink("");
+
+ const showAccountRequiredMessage = !allowExternalEmails && !isOrgAccess;
+
createNotification({
- text: "If the provided email is associated with an Infisical account they will receive a link",
+ text: showAccountRequiredMessage
+ ? `If the provided ${processedEmails.length > 1 ? "emails are" : "email is"} associated with an Infisical account they will receive a link`
+ : `Secret link has been sent to the provided ${processedEmails.length > 1 ? "emails" : "email"}`,
type: "success"
});
} else {