mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 07:26:11 +00:00
Made email URL use SITE_URL
This commit is contained in:
@@ -39,6 +39,7 @@ import {
|
|||||||
AuthTokenType,
|
AuthTokenType,
|
||||||
MfaMethod
|
MfaMethod
|
||||||
} from "./auth-type";
|
} from "./auth-type";
|
||||||
|
import { removeTrailingSlash } from "@app/lib/fn";
|
||||||
|
|
||||||
type TAuthLoginServiceFactoryDep = {
|
type TAuthLoginServiceFactoryDep = {
|
||||||
userDAL: TUserDALFactory;
|
userDAL: TUserDALFactory;
|
||||||
@@ -465,7 +466,8 @@ export const authLoginServiceFactory = ({
|
|||||||
email: user.email,
|
email: user.email,
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
ip: ipAddress,
|
ip: ipAddress,
|
||||||
userAgent
|
userAgent,
|
||||||
|
siteUrl: removeTrailingSlash(cfg.SITE_URL || "https://app.infisical.com")
|
||||||
},
|
},
|
||||||
template: SmtpTemplates.OrgAdminBreakglassAccess
|
template: SmtpTemplates.OrgAdminBreakglassAccess
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<p><strong>Timestamp</strong>: {{timestamp}}</p>
|
<p><strong>Timestamp</strong>: {{timestamp}}</p>
|
||||||
<p><strong>IP address</strong>: {{ip}}</p>
|
<p><strong>IP address</strong>: {{ip}}</p>
|
||||||
<p><strong>User agent</strong>: {{userAgent}}</p>
|
<p><strong>User agent</strong>: {{userAgent}}</p>
|
||||||
<p>If you'd like to disable Admin SSO Bypass, please visit <a href="https://app.infisical.com/organization/settings">Organization Settings</a> > Security.</p>
|
<p>If you'd like to disable Admin SSO Bypass, please visit <a href="{{siteUrl}}/organization/settings">Organization Settings</a> > Security.</p>
|
||||||
|
|
||||||
{{emailFooter}}
|
{{emailFooter}}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user