Renaming registration to invite URL.

This commit is contained in:
mike12345567 2021-05-10 15:05:06 +01:00
parent 4ccb326ece
commit 075b00b534
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -22,7 +22,7 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
<tr>
<td align="center">
<a href="{{ registrationUrl }}" class="f-fallback button" target="_blank">Set up account</a>
<a href="{{ inviteUrl }}" class="f-fallback button" target="_blank">Set up account</a>
</td>
</tr>
</table>
@ -38,7 +38,7 @@
<tr>
<td>
<p class="f-fallback sub">If youre having trouble with the button above, copy and paste the URL below into your web browser.</p>
<p class="f-fallback sub">{{ registrationUrl }}</p>
<p class="f-fallback sub">{{ inviteUrl }}</p>
</td>
</tr>
</table>

View File

@ -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