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:52:55 -04:00
parent 75e957ed4a
commit 05615d1449

View file

@ -1054,11 +1054,15 @@ App::post('/v1/account/sessions/magic-url')
'footer' => $locale->getText("emails.magicSession.footer"), 'footer' => $locale->getText("emails.magicSession.footer"),
'thanks' => $locale->getText("emails.magicSession.thanks"), 'thanks' => $locale->getText("emails.magicSession.thanks"),
'signature' => $locale->getText("emails.magicSession.signature"), 'signature' => $locale->getText("emails.magicSession.signature"),
'project' => $project->getAttribute('name'),
'direction' => $locale->getText('settings.direction'), 'direction' => $locale->getText('settings.direction'),
'bg-body' => '#f7f7f7', 'bg-body' => '#f7f7f7',
'bg-content' => '#ffffff', 'bg-content' => '#ffffff',
'text-content' => '#000000', 'text-content' => '#000000',
/* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */
'user' => '',
'team' => '',
'project' => $project->getAttribute('name'),
'redirect' => $url
]; ];
$mails $mails
@ -2503,15 +2507,18 @@ App::post('/v1/account/recovery')
'hello' => $locale->getText("emails.recovery.hello"), 'hello' => $locale->getText("emails.recovery.hello"),
'name' => $profile->getAttribute('name'), 'name' => $profile->getAttribute('name'),
'body' => $body, 'body' => $body,
'redirect' => $url,
'footer' => $locale->getText("emails.recovery.footer"), 'footer' => $locale->getText("emails.recovery.footer"),
'thanks' => $locale->getText("emails.recovery.thanks"), 'thanks' => $locale->getText("emails.recovery.thanks"),
'signature' => $locale->getText("emails.recovery.signature"), 'signature' => $locale->getText("emails.recovery.signature"),
'project' => $projectName,
'direction' => $locale->getText('settings.direction'), 'direction' => $locale->getText('settings.direction'),
'bg-body' => '#f7f7f7', 'bg-body' => '#f7f7f7',
'bg-content' => '#ffffff', 'bg-content' => '#ffffff',
'text-content' => '#000000', 'text-content' => '#000000',
/* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */
'user' => $user->getAttribute('name'),
'team' => '',
'project' => $projectName,
'redirect' => $url
]; ];
@ -2761,7 +2768,8 @@ App::post('/v1/account/verification')
'bg-content' => '#ffffff', 'bg-content' => '#ffffff',
'text-content' => '#000000', 'text-content' => '#000000',
/* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */ /* {{user}} ,{{team}}, {{project}} and {{redirect}} are required in the templates */
'user' => $user->getAttribute('name'), 'user' => $user->getAttribute('name'),
'team' => '',
'project' => $projectName, 'project' => $projectName,
'redirect' => $url 'redirect' => $url
]; ];