1
0
Fork 0
mirror of synced 2024-09-30 01:08:13 +13:00

fix: missing variable in email templates

This commit is contained in:
Christy Jacob 2023-08-30 17:48:25 -04:00
parent 6a8b83104c
commit 75e957ed4a
2 changed files with 9 additions and 3 deletions

View file

@ -2753,15 +2753,17 @@ App::post('/v1/account/verification')
'hello' => $locale->getText("emails.verification.hello"),
'name' => $user->getAttribute('name'),
'body' => $body,
'redirect' => $url,
'footer' => $locale->getText("emails.verification.footer"),
'thanks' => $locale->getText("emails.verification.thanks"),
'signature' => $locale->getText("emails.verification.signature"),
'project' => $projectName,
'direction' => $locale->getText('settings.direction'),
'bg-body' => '#f7f7f7',
'bg-content' => '#ffffff',
'text-content' => '#000000',
/* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */
'user' => $user->getAttribute('name'),
'project' => $projectName,
'redirect' => $url
];
$mails

View file

@ -599,7 +599,6 @@ App::post('/v1/teams/:teamId/memberships')
$emailVariables = [
'owner' => $user->getAttribute('name'),
'team' => $team->getAttribute('name'),
'subject' => $subject,
'hello' => $locale->getText("emails.invitation.hello"),
'name' => $user->getAttribute('name'),
@ -613,6 +612,11 @@ App::post('/v1/teams/:teamId/memberships')
'bg-body' => '#f7f7f7',
'bg-content' => '#ffffff',
'text-content' => '#000000',
/* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */
'user' => $user->getAttribute('name'),
'team' => $team->getAttribute('name'),
'project' => $projectName,
'redirect' => $url
];
$mails