+
Your account has been temporarily locked due to multiple failed login attempts.
If these attempts were not made by you, reset your password immediately.
@@ -41,6 +41,5 @@ export default UnlockAccountTemplate;
UnlockAccountTemplate.PreviewProps = {
callback_url: "Example Project",
siteUrl: "https://infisical.com",
- url: "https://infisical.com",
- token: "Example Token"
+ token: "preview-token"
} as UnlockAccountTemplateProps;
diff --git a/backend/src/services/smtp/emails/index.ts b/backend/src/services/smtp/emails/index.ts
index 324f7063e..29738dbb2 100644
--- a/backend/src/services/smtp/emails/index.ts
+++ b/backend/src/services/smtp/emails/index.ts
@@ -9,7 +9,6 @@ export * from "./NewDeviceLoginTemplate";
export * from "./OrgAdminBreakglassAccessTemplate";
export * from "./OrgAdminProjectGrantAccessTemplate";
export * from "./OrganizationInvitationTemplate";
-export * from "./OrganizationInvitationTemplate";
export * from "./PasswordResetTemplate";
export * from "./PasswordSetupTemplate";
export * from "./PkiExpirationAlertTemplate";
diff --git a/backend/src/services/smtp/smtp-service.tsx b/backend/src/services/smtp/smtp-service.tsx
index dd1755aaf..d3ab3ecda 100644
--- a/backend/src/services/smtp/smtp-service.tsx
+++ b/backend/src/services/smtp/smtp-service.tsx
@@ -1,5 +1,4 @@
import { render } from "@react-email/components";
-import handlebars from "handlebars";
import { createTransport } from "nodemailer";
import SMTPTransport from "nodemailer/lib/smtp-transport";
import React from "react";
@@ -80,7 +79,7 @@ export enum SmtpTemplates {
export enum SmtpHost {
Sendgrid = "smtp.sendgrid.net",
Mailgun = "smtp.mailgun.org",
- SocketLabs = "smtp.sockerlabs.com",
+ SocketLabs = "smtp.socketlabs.com",
Zohomail = "smtp.zoho.com",
Gmail = "smtp.gmail.com",
Office365 = "smtp.office365.com"
@@ -121,13 +120,6 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
const smtp = createTransport(cfg);
const isSmtpOn = Boolean(cfg.host);
- handlebars.registerHelper("emailFooter", () => {
- const { SITE_URL } = getConfig();
- return new handlebars.SafeString(
- `Email sent via Infisical at ${SITE_URL}
`
- );
- });
-
const sendMail = async ({ substitutions, recipients, template, subjectLine }: TSmtpSendMail) => {
const appCfg = getConfig();
diff --git a/backend/src/services/smtp/templates/externalImportFailed.handlebars b/backend/src/services/smtp/templates/externalImportFailed.handlebars
deleted file mode 100644
index 1755052c1..000000000
--- a/backend/src/services/smtp/templates/externalImportFailed.handlebars
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
- Import failed
-
-
-
- An import from {{provider}} to Infisical has failed
- An import from
- {{provider}}
- to Infisical has failed due to unforeseen circumstances. Please re-try your import, and if the issue persists, you
- can contact the Infisical team at team@infisical.com.
-
-
- Error: {{error}}
-
- {{emailFooter}}
-
-
-
\ No newline at end of file
diff --git a/backend/src/services/smtp/templates/externalImportStarted.handlebars b/backend/src/services/smtp/templates/externalImportStarted.handlebars
deleted file mode 100644
index 90026f762..000000000
--- a/backend/src/services/smtp/templates/externalImportStarted.handlebars
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- Import in progress
-
-
-
- An import from {{provider}} to Infisical is in progress
- An import from
- {{provider}}
- to Infisical is in progress. The import process may take up to 30 minutes, and you will receive once the import
- has finished or if it fails.
-
- {{emailFooter}}
-
-
-
\ No newline at end of file
diff --git a/backend/src/services/smtp/templates/externalImportSuccessful.handlebars b/backend/src/services/smtp/templates/externalImportSuccessful.handlebars
deleted file mode 100644
index a918e9ec7..000000000
--- a/backend/src/services/smtp/templates/externalImportSuccessful.handlebars
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- Import successful
-
-
-
- An import from {{provider}} to Infisical was successful
- An import from {{provider}} was successful. Your data is now available in Infisical.
-
- {{emailFooter}}
-
-
-
\ No newline at end of file
diff --git a/backend/tsconfig.json b/backend/tsconfig.json
index 3d7813257..523e6de5b 100644
--- a/backend/tsconfig.json
+++ b/backend/tsconfig.json
@@ -26,7 +26,7 @@
"paths": {
"@app/*": ["./src/*"]
},
- "jsx": "react"
+ "jsx": "react-jsx"
},
"include": ["src/**/*", "scripts/**/*", "e2e-test/**/*", "./.eslintrc.js", "./tsup.config.js"],
"exclude": ["node_modules"]