From 075b00b534222f0cad83f59d569316c1f3cb8037 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 10 May 2021 15:05:06 +0100 Subject: [PATCH] Renaming registration to invite URL. --- packages/worker/src/constants/index.js | 4 ++-- packages/worker/src/constants/templates/invitation.hbs | 4 ++-- packages/worker/src/utilities/templates.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/worker/src/constants/index.js b/packages/worker/src/constants/index.js index b7ac33cc28..ac0678eb2e 100644 --- a/packages/worker/src/constants/index.js +++ b/packages/worker/src/constants/index.js @@ -40,7 +40,7 @@ const TemplateBindings = { LOGO_URL: "logoUrl", STYLES: "styles", BODY: "body", - REGISTRATION_URL: "registrationUrl", + INVITE_URL: "inviteUrl", EMAIL: "email", RESET_URL: "resetUrl", USER: "user", @@ -63,7 +63,7 @@ const TemplateMetadata = { { name: "Base Format", purpose: EmailTemplatePurpose.BASE, - bindings: ["company", "registrationUrl"], + bindings: ["company", "inviteUrl"], }, { name: "Password Recovery", diff --git a/packages/worker/src/constants/templates/invitation.hbs b/packages/worker/src/constants/templates/invitation.hbs index fcaf7e7ca1..49564c7cf2 100644 --- a/packages/worker/src/constants/templates/invitation.hbs +++ b/packages/worker/src/constants/templates/invitation.hbs @@ -22,7 +22,7 @@
- Set up account + Set up account
@@ -38,7 +38,7 @@

If you’re having trouble with the button above, copy and paste the URL below into your web browser.

-

{{ registrationUrl }}

+

{{ inviteUrl }}

diff --git a/packages/worker/src/utilities/templates.js b/packages/worker/src/utilities/templates.js index a9da10405b..64ef62060d 100644 --- a/packages/worker/src/utilities/templates.js +++ b/packages/worker/src/utilities/templates.js @@ -41,7 +41,7 @@ exports.getSettingsTemplateContext = async (purpose, code = null) => { break case EmailTemplatePurpose.INVITATION: context[TemplateBindings.INVITE_CODE] = code - context[TemplateBindings.REGISTRATION_URL] = checkSlashesInUrl( + context[TemplateBindings.INVITE_URL] = checkSlashesInUrl( `${URL}/invite?code=${code}` ) break