From b60357eee9d81a87046dff77b831d62306005239 Mon Sep 17 00:00:00 2001 From: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> Date: Mon, 11 Jul 2022 12:45:55 -0500 Subject: [PATCH] Fixing missed email template (#2099) --- .../FamiliesForEnterpriseOfferNewAccount.html.hbs | 13 ++++++++----- .../FamiliesForEnterpriseOfferNewAccount.text.hbs | 3 ++- .../Services/HandlebarsMailServiceTests.cs | 3 ++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.html.hbs b/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.html.hbs index ac2c23305a..72c1632f39 100644 --- a/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.html.hbs +++ b/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.html.hbs @@ -5,16 +5,19 @@ A Bitwarden organization, {{SponsorOrgName}}, has sponsored a free Families subscription for you! To accept your complimentary subscription, you will need to create an account with this email address. + + + If you do not recognize this account, please ignore this message. +
+
+ + Create Account - - - - - If you do not recognize this account, please ignore this message. +
diff --git a/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.text.hbs b/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.text.hbs index 20058bc41f..d513b5bf57 100644 --- a/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.text.hbs +++ b/src/Core/MailTemplates/Handlebars/FamiliesForEnterprise/FamiliesForEnterpriseOfferNewAccount.text.hbs @@ -1,7 +1,8 @@ {{#>BasicTextLayout}} A Bitwarden organization, {{SponsorOrgName}}, has sponsored a free Families subscription for you! To accept your complimentary subscription, you will need to create an account with this email address. Click the link below. +If you do not recognize this account, please ignore this message. + {{Url}} -If you do not recognize this account, please ignore this message. {{/BasicTextLayout}} diff --git a/test/Core.Test/Services/HandlebarsMailServiceTests.cs b/test/Core.Test/Services/HandlebarsMailServiceTests.cs index c58ba2a95c..39348ad8e6 100644 --- a/test/Core.Test/Services/HandlebarsMailServiceTests.cs +++ b/test/Core.Test/Services/HandlebarsMailServiceTests.cs @@ -111,7 +111,8 @@ namespace Bit.Core.Test.Services { ("familyUserEmail", typeof(string)), "test@bitwarden.com" }, { ("sponsorEmail", typeof(string)), "test@bitwarden.com" }, { ("familyOrgName", typeof(string)), "Test Org Name" }, - { ("existingAccount", typeof(bool)), true }, + // Swap existingAccount to true or false to generate different versions of the SendFamiliesForEnterpriseOfferEmailAsync emails. + { ("existingAccount", typeof(bool)), false }, { ("sponsorshipEndDate", typeof(DateTime)), DateTime.UtcNow.AddDays(1)}, { ("sponsorOrgName", typeof(string)), "Sponsor Test Org Name" }, { ("expirationDate", typeof(DateTime)), DateTime.Now.AddDays(3) },