fix: missing variable in email templates
This commit is contained in:
parent
75e957ed4a
commit
05615d1449
1 changed files with 12 additions and 4 deletions
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -2762,6 +2769,7 @@ App::post('/v1/account/verification')
|
||||||
'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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue