Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(email): include confirmation code in email subject line

Devin AIa2783bb690a1
diff --git a/backend/src/ee/services/ldap-config/ldap-config-service.ts b/backend/src/ee/services/ldap-config/ldap-config-service.ts
index 1e5aa96635..aae3b758f9 100644
--- a/backend/src/ee/services/ldap-config/ldap-config-service.ts
+++ b/backend/src/ee/services/ldap-config/ldap-config-service.ts
@@ -632,7 +632,7 @@ export const ldapConfigServiceFactory = ({
await smtpService.sendMail({
template: SmtpTemplates.EmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${token}`,
recipients: [user.email],
substitutions: {
code: token
diff --git a/backend/src/ee/services/oidc/oidc-config-service.ts b/backend/src/ee/services/oidc/oidc-config-service.ts
index 0a129f9274..8043d35149 100644
--- a/backend/src/ee/services/oidc/oidc-config-service.ts
+++ b/backend/src/ee/services/oidc/oidc-config-service.ts
@@ -421,7 +421,7 @@ export const oidcConfigServiceFactory = ({
await smtpService
.sendMail({
template: SmtpTemplates.EmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${token}`,
recipients: [user.email],
substitutions: {
code: token
diff --git a/backend/src/ee/services/saml-config/saml-config-service.ts b/backend/src/ee/services/saml-config/saml-config-service.ts
index 5d221f4123..3e24f0fe39 100644
--- a/backend/src/ee/services/saml-config/saml-config-service.ts
+++ b/backend/src/ee/services/saml-config/saml-config-service.ts
@@ -728,7 +728,7 @@ export const samlConfigServiceFactory = ({
await smtpService.sendMail({
template: SmtpTemplates.EmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${token}`,
recipients: [user.email],
substitutions: {
code: token
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts
index c9eb36d573..22c9bdbd2b 100644
--- a/backend/src/services/auth/auth-login-service.ts
+++ b/backend/src/services/auth/auth-login-service.ts
@@ -1098,7 +1098,7 @@ export const authLoginServiceFactory = ({
await smtpService.sendMail({
template: SmtpTemplates.EmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${verificationCode}`,
recipients: [user.email],
substitutions: {
code: verificationCode
diff --git a/backend/src/services/auth/auth-signup-service.ts b/backend/src/services/auth/auth-signup-service.ts
index 808a831488..1264c7ea62 100644
--- a/backend/src/services/auth/auth-signup-service.ts
+++ b/backend/src/services/auth/auth-signup-service.ts
@@ -92,7 +92,7 @@ export const authSignupServiceFactory = ({
await smtpService
.sendMail({
template: SmtpTemplates.SignupEmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${token}`,
recipients: [sanitizedEmail],
substitutions: {
code: token
diff --git a/backend/src/services/user/user-service.ts b/backend/src/services/user/user-service.ts
index c998b27262..75351c2bb4 100644
--- a/backend/src/services/user/user-service.ts
+++ b/backend/src/services/user/user-service.ts
@@ -87,7 +87,7 @@ export const userServiceFactory = ({
await smtpService.sendMail({
template: SmtpTemplates.EmailVerification,
- subjectLine: "Infisical confirmation code",
+ subjectLine: `Infisical confirmation code: ${userToken}`,
recipients: [user.email],
substitutions: {
code: userToken