mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Split Console and Client templates for MFA Altered
This commit is contained in:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user