mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
fix: add orgId to OrgAdminBreakglassAccess email template and update link
This commit is contained in:
@@ -663,7 +663,8 @@ export const authLoginServiceFactory = ({
|
|||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
ip: ipAddress,
|
ip: ipAddress,
|
||||||
userAgent,
|
userAgent,
|
||||||
siteUrl: removeTrailingSlash(cfg.SITE_URL || "https://app.infisical.com")
|
siteUrl: removeTrailingSlash(cfg.SITE_URL || "https://app.infisical.com"),
|
||||||
|
orgId: organizationId
|
||||||
},
|
},
|
||||||
template: SmtpTemplates.OrgAdminBreakglassAccess
|
template: SmtpTemplates.OrgAdminBreakglassAccess
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { BaseLink } from "./BaseLink";
|
|||||||
interface OrgAdminBreakglassAccessTemplateProps extends Omit<BaseEmailWrapperProps, "title" | "preview" | "children"> {
|
interface OrgAdminBreakglassAccessTemplateProps extends Omit<BaseEmailWrapperProps, "title" | "preview" | "children"> {
|
||||||
email: string;
|
email: string;
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
|
orgId: string;
|
||||||
ip: string;
|
ip: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
}
|
}
|
||||||
@@ -15,6 +16,7 @@ export const OrgAdminBreakglassAccessTemplate = ({
|
|||||||
email,
|
email,
|
||||||
siteUrl,
|
siteUrl,
|
||||||
timestamp,
|
timestamp,
|
||||||
|
orgId,
|
||||||
ip,
|
ip,
|
||||||
userAgent
|
userAgent
|
||||||
}: OrgAdminBreakglassAccessTemplateProps) => {
|
}: OrgAdminBreakglassAccessTemplateProps) => {
|
||||||
@@ -36,7 +38,7 @@ export const OrgAdminBreakglassAccessTemplate = ({
|
|||||||
<Text className="text-[14px] mt-[4px]">{userAgent}</Text>
|
<Text className="text-[14px] mt-[4px]">{userAgent}</Text>
|
||||||
<Text className="text-[14px]">
|
<Text className="text-[14px]">
|
||||||
If you'd like to disable Admin SSO Bypass, please visit{" "}
|
If you'd like to disable Admin SSO Bypass, please visit{" "}
|
||||||
<BaseLink href={`${siteUrl}/organization/settings`}>Organization Security Settings</BaseLink>.
|
<BaseLink href={`${siteUrl}/organizations/${orgId}/settings`}>Organization Security Settings</BaseLink>.
|
||||||
</Text>
|
</Text>
|
||||||
</Section>
|
</Section>
|
||||||
</BaseEmailWrapper>
|
</BaseEmailWrapper>
|
||||||
@@ -51,5 +53,6 @@ OrgAdminBreakglassAccessTemplate.PreviewProps = {
|
|||||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15",
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15",
|
||||||
timestamp: "Tue Apr 29 2025 23:03:27 GMT+0000 (Coordinated Universal Time)",
|
timestamp: "Tue Apr 29 2025 23:03:27 GMT+0000 (Coordinated Universal Time)",
|
||||||
siteUrl: "https://infisical.com",
|
siteUrl: "https://infisical.com",
|
||||||
email: "[email protected]"
|
email: "[email protected]",
|
||||||
|
orgId: "123"
|
||||||
} as OrgAdminBreakglassAccessTemplateProps;
|
} as OrgAdminBreakglassAccessTemplateProps;
|
||||||
|
|||||||
Reference in New Issue
Block a user