tests & lint

This commit is contained in:
Hemachandar
2025-09-16 11:54:01 +05:30
parent 0b9e43c9f8
commit f8ab95b3e1
2 changed files with 4 additions and 14 deletions
+1 -11
View File
@@ -71,16 +71,7 @@ $console = [
'body' => 'Enter the following code to confirm your two-step verification in {{b}}{{project}}{{/b}}. This code will expire in 15 minutes.',
'thanks' => 'Thanks,',
"signature" => "{{project}} team",
],
'email.otpSession-en' => [
'subject' => 'OTP for {{project}} account login',
'preview' => 'Use OTP {{otp}} to sign in to {{project}}. Expires in 15 minutes.',
'heading' => 'Login with OTP to use Appwrite Cloud',
'hello' => 'Hello {{user}},',
'body' => 'Enter the following verification code when prompted to securely sign in to your {{b}}{{project}}{{/b}} account. This code will expire in 15 minutes.',
'thanks' => 'Thanks,',
"signature" => "{{project}} team",
],
]
],
'customEmails' => true,
];
@@ -88,7 +79,6 @@ $console = [
foreach ($localeCodes as $localeCode) {
$console['templates']['email.verification-'.$localeCode['code']] = $console['templates']['email.verification-en'];
$console['templates']['email.mfaChallenge-'.$localeCode['code']] = $console['templates']['email.mfaChallenge-en'];
$console['templates']['email.otpSession-'.$localeCode['code']] = $console['templates']['email.otpSession-en'];
}
return $console;
+3 -3
View File
@@ -2364,7 +2364,7 @@ App::post('/v1/account/tokens/email')
->setSmtpReplyTo($replyTo)
->setSmtpSenderEmail($senderEmail)
->setSmtpSenderName($senderName);
} else if ($customEmails) {
} elseif ($customEmails && !empty($customTemplate)) {
$subject = $customTemplate['subject'];
$preview = $customTemplate['preview'];
$heading = $customTemplate['heading'];
@@ -3671,7 +3671,7 @@ App::post('/v1/account/verification')
->setSmtpReplyTo($replyTo)
->setSmtpSenderEmail($senderEmail)
->setSmtpSenderName($senderName);
} else if ($customEmails) {
} elseif ($customEmails && !empty($customTemplate)) {
$subject = $customTemplate['subject'];
$preview = $customTemplate['preview'];
$heading = $customTemplate['heading'];
@@ -4782,7 +4782,7 @@ App::post('/v1/account/mfa/challenge')
->setSmtpReplyTo($replyTo)
->setSmtpSenderEmail($senderEmail)
->setSmtpSenderName($senderName);
} else if ($customEmails) {
} elseif ($customEmails && !empty($customTemplate)) {
$subject = $customTemplate['subject'];
$preview = $customTemplate['preview'];
$heading = $customTemplate['heading'];