From 1f95c693ac421d5beda4935a519dcea780d6d39b Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 4 Oct 2021 17:59:25 +0100 Subject: [PATCH] As with the account portal, updating the monorepo to use the users name if it is available for some email templates. --- packages/worker/src/constants/templates/passwordRecovery.hbs | 2 +- packages/worker/src/constants/templates/welcome.hbs | 2 +- packages/worker/src/utilities/email.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/worker/src/constants/templates/passwordRecovery.hbs b/packages/worker/src/constants/templates/passwordRecovery.hbs index 6ebe606467..128398cdb7 100644 --- a/packages/worker/src/constants/templates/passwordRecovery.hbs +++ b/packages/worker/src/constants/templates/passwordRecovery.hbs @@ -6,7 +6,7 @@
-

Hi {{ email }},

+

Hi {{#if name}}{{ name }}{{else}}{{ email }}{{/if}},

You recently requested to reset your password for your {{ company }} account in your Budibase platform. Use the button below to reset it. This password reset is only valid for the next 24 hours.

diff --git a/packages/worker/src/constants/templates/welcome.hbs b/packages/worker/src/constants/templates/welcome.hbs index b509ad5e31..18ea572bb0 100644 --- a/packages/worker/src/constants/templates/welcome.hbs +++ b/packages/worker/src/constants/templates/welcome.hbs @@ -6,7 +6,7 @@