Split Console and Client templates for MFA Altered

This commit is contained in:
Bradley Schofield
2024-08-29 14:42:16 +09:00
parent 96d39e1421
commit 4100e4f019
4 changed files with 11 additions and 2 deletions
@@ -0,0 +1,8 @@
<p>{{hello}},</p>
<p>{{body}}</p>
<p>{{footer}}</p>
<p style="margin-bottom: 32px">
{{thanks}},
<br/>
{{signature}}
</p>
Submodule
+1
Submodule app/console added at 112fccf5a0
+2 -2
View File
@@ -3670,7 +3670,7 @@ App::patch('/v1/account/mfa')
// Appwrite Theming for Console
if ($project->getInternalId() === 'console') {
$message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-base-styled.tpl');
$body = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-mfa-altered.tpl');
$body = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-mfa-altered-console.tpl');
$body
->setParam('{{buttonText}}', $locale->getText("emails.{$type}.buttonText"))
@@ -3681,7 +3681,7 @@ App::patch('/v1/account/mfa')
$message->setParam('{{body}}', $body->render(), escapeHtml: false);
} else {
$message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-inner-base.tpl');
$message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-mfa-altered-client.tpl');
$message->setParam('{{body}}', $locale->getText("emails.{$type}.body"), escapeHtml: false);
}