Renaming registration to invite URL.
This commit is contained in:
parent
4ccb326ece
commit
075b00b534
|
@ -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",
|
||||
|
|
|
@ -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 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>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue