mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
misc: added email formatting for remaining templates
This commit is contained in:
@@ -51,7 +51,7 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
|
|||||||
const appCfg = getConfig();
|
const appCfg = getConfig();
|
||||||
const html = await fs.readFile(path.resolve(__dirname, "./templates/", template), "utf8");
|
const html = await fs.readFile(path.resolve(__dirname, "./templates/", template), "utf8");
|
||||||
const temp = handlebars.compile(html);
|
const temp = handlebars.compile(html);
|
||||||
const htmlToSend = temp({ ...substitutions, isCloud: appCfg.isCloud });
|
const htmlToSend = temp({ isCloud: appCfg.isCloud, siteUrl: appCfg.SITE_URL, ...substitutions });
|
||||||
|
|
||||||
if (isSmtpOn) {
|
if (isSmtpOn) {
|
||||||
await smtp.sendMail({
|
await smtp.sendMail({
|
||||||
|
|||||||
@@ -9,12 +9,12 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h3>Infisical has uncovered {{numberOfSecrets}} secret(s) from historical commits to your repo</h3>
|
<h3>Infisical has uncovered {{numberOfSecrets}} secret(s) from historical commits to your repo</h3>
|
||||||
<p><a href="https://app.infisical.com/secret-scanning"><strong>View leaked secrets</strong></a></p>
|
<p><a href="{{siteUrl}}/secret-scanning"><strong>View leaked secrets</strong></a></p>
|
||||||
|
|
||||||
<p>If these are production secrets, please rotate them immediately.</p>
|
<p>If these are production secrets, please rotate them immediately.</p>
|
||||||
|
|
||||||
<p>Once you have taken action, be sure to update the status of the risk in your <a
|
<p>Once you have taken action, be sure to update the status of the risk in your <a
|
||||||
href="https://app.infisical.com/">Infisical
|
href="{{siteUrl}}">Infisical
|
||||||
dashboard</a>.</p>
|
dashboard</a>.</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h3>Infisical has uncovered {{numberOfSecrets}} secret(s) from your recent push</h3>
|
<h3>Infisical has uncovered {{numberOfSecrets}} secret(s) from your recent push</h3>
|
||||||
<p><a href="https://app.infisical.com/secret-scanning"><strong>View leaked secrets</strong></a></p>
|
<p><a href="{{siteUrl}}/secret-scanning"><strong>View leaked secrets</strong></a></p>
|
||||||
<p>You are receiving this notification because one or more secret leaks have been detected in a recent commit pushed
|
<p>You are receiving this notification because one or more secret leaks have been detected in a recent commit pushed
|
||||||
by {{pusher_name}} ({{pusher_email}}). If
|
by {{pusher_name}} ({{pusher_email}}). If
|
||||||
these are test secrets, please add `infisical-scan:ignore` at the end of the line containing the secret as comment
|
these are test secrets, please add `infisical-scan:ignore` at the end of the line containing the secret as comment
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<p>If these are production secrets, please rotate them immediately.</p>
|
<p>If these are production secrets, please rotate them immediately.</p>
|
||||||
|
|
||||||
<p>Once you have taken action, be sure to update the status of the risk in your <a
|
<p>Once you have taken action, be sure to update the status of the risk in your <a
|
||||||
href="https://app.infisical.com/">Infisical
|
href="{{siteUrl}}">Infisical
|
||||||
dashboard</a>.</p>
|
dashboard</a>.</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<h2>Confirm your email address</h2>
|
<h2>Confirm your email address</h2>
|
||||||
<p>Your confirmation code is below — enter it in the browser window where you've started signing up for Infisical.</p>
|
<p>Your confirmation code is below — enter it in the browser window where you've started signing up for Infisical.</p>
|
||||||
<h1>{{code}}</h1>
|
<h1>{{code}}</h1>
|
||||||
<p>Questions about setting up Infisical? Email us at [email protected]</p>
|
<p>Questions about setting up Infisical? {{#if isCloud}}Email us at [email protected]{{else}}Contact your administrator{{/if}}.</p>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user