Renaming registration to invite URL.
This commit is contained in:
parent
4ccb326ece
commit
075b00b534
|
@ -40,7 +40,7 @@ const TemplateBindings = {
|
||||||
LOGO_URL: "logoUrl",
|
LOGO_URL: "logoUrl",
|
||||||
STYLES: "styles",
|
STYLES: "styles",
|
||||||
BODY: "body",
|
BODY: "body",
|
||||||
REGISTRATION_URL: "registrationUrl",
|
INVITE_URL: "inviteUrl",
|
||||||
EMAIL: "email",
|
EMAIL: "email",
|
||||||
RESET_URL: "resetUrl",
|
RESET_URL: "resetUrl",
|
||||||
USER: "user",
|
USER: "user",
|
||||||
|
@ -63,7 +63,7 @@ const TemplateMetadata = {
|
||||||
{
|
{
|
||||||
name: "Base Format",
|
name: "Base Format",
|
||||||
purpose: EmailTemplatePurpose.BASE,
|
purpose: EmailTemplatePurpose.BASE,
|
||||||
bindings: ["company", "registrationUrl"],
|
bindings: ["company", "inviteUrl"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Password Recovery",
|
name: "Password Recovery",
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p class="f-fallback sub">If you’re having trouble with the button above, copy and paste the URL below into your web browser.</p>
|
<p class="f-fallback sub">If you’re 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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -41,7 +41,7 @@ exports.getSettingsTemplateContext = async (purpose, code = null) => {
|
||||||
break
|
break
|
||||||
case EmailTemplatePurpose.INVITATION:
|
case EmailTemplatePurpose.INVITATION:
|
||||||
context[TemplateBindings.INVITE_CODE] = code
|
context[TemplateBindings.INVITE_CODE] = code
|
||||||
context[TemplateBindings.REGISTRATION_URL] = checkSlashesInUrl(
|
context[TemplateBindings.INVITE_URL] = checkSlashesInUrl(
|
||||||
`${URL}/invite?code=${code}`
|
`${URL}/invite?code=${code}`
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue