mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
tests & lint
This commit is contained in:
+1
-11
@@ -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;
|
||||
|
||||
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user