fix: missing variable in email templates
This commit is contained in:
parent
6a8b83104c
commit
75e957ed4a
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue