From 70a3820009a97396bf582f33e5a89972ce0bb237 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 4 Oct 2023 15:08:32 -0700 Subject: [PATCH] Remove unused mail vars --- app/controllers/api/account.php | 9 --------- app/controllers/api/teams.php | 3 --- src/Appwrite/Platform/Workers/Certificates.php | 5 +---- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 2bc7759620..b6a47efea1 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1057,9 +1057,6 @@ App::post('/v1/account/sessions/magic-url') 'thanks' => $locale->getText("emails.magicSession.thanks"), 'signature' => $locale->getText("emails.magicSession.signature"), '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' => '', 'team' => '', @@ -2514,9 +2511,6 @@ App::post('/v1/account/recovery') 'thanks' => $locale->getText("emails.recovery.thanks"), 'signature' => $locale->getText("emails.recovery.signature"), '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' => $profile->getAttribute('name'), 'team' => '', @@ -2766,9 +2760,6 @@ App::post('/v1/account/verification') 'thanks' => $locale->getText("emails.verification.thanks"), 'signature' => $locale->getText("emails.verification.signature"), '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'), 'team' => '', diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 0a887908bb..a089a8f37c 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -613,9 +613,6 @@ App::post('/v1/teams/:teamId/memberships') 'thanks' => $locale->getText("emails.invitation.thanks"), 'signature' => $locale->getText("emails.invitation.signature"), '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'), 'team' => $team->getAttribute('name'), diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 02c1835dd5..31f9caa292 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -441,10 +441,7 @@ class Certificates extends Action ->setParam('{{thanks}}', $locale->getText("emails.certificate.thanks")) ->setParam('{{signature}}', $locale->getText("emails.certificate.signature")) ->setParam('{{project}}', 'Console') - ->setParam('{{direction}}', $locale->getText('settings.direction')) - ->setParam('{{bg-body}}', '#f7f7f7') - ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{text-content}}', '#000000'); + ->setParam('{{direction}}', $locale->getText('settings.direction')); $queueForMails ->setRecipient(App::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS'))