Made email URL use SITE_URL

This commit is contained in:
x
2025-04-24 10:24:42 -04:00
parent d019011822
commit e25c1199bc
2 changed files with 4 additions and 2 deletions
@@ -39,6 +39,7 @@ import {
AuthTokenType,
MfaMethod
} from "./auth-type";
import { removeTrailingSlash } from "@app/lib/fn";
type TAuthLoginServiceFactoryDep = {
userDAL: TUserDALFactory;
@@ -465,7 +466,8 @@ export const authLoginServiceFactory = ({
email: user.email,
timestamp: new Date().toISOString(),
ip: ipAddress,
userAgent
userAgent,
siteUrl: removeTrailingSlash(cfg.SITE_URL || "https://app.infisical.com")
},
template: SmtpTemplates.OrgAdminBreakglassAccess
});