mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix the order
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
|
||||
<p>{{body}}</p>
|
||||
|
||||
<i>{{securityPhrase}}</i>
|
||||
|
||||
<a href="{{redirect}}" target="_blank">{{redirect}}</a>
|
||||
|
||||
<b>{{code}}</b>
|
||||
|
||||
<i>{{securityPhrase}}</i>
|
||||
|
||||
<p>{{footer}}</p>
|
||||
|
||||
<br>
|
||||
|
||||
@@ -1123,7 +1123,7 @@ App::post('/v1/account/sessions/magic-url')
|
||||
'Uplift', 'Velvet', 'Wanderlust', 'Zest'
|
||||
);
|
||||
|
||||
$securityPhraseString = $wordArray1[array_rand($wordArray1)] . $wordArray2[array_rand($wordArray2)];
|
||||
$securityPhraseString = "<br><hr><br>We have received a login attempt with the following phrase:<br><b>" . $wordArray1[array_rand($wordArray1)] . " " . $wordArray2[array_rand($wordArray2)] . "</b><hr>";
|
||||
}
|
||||
|
||||
$token = new Document([
|
||||
@@ -1160,10 +1160,6 @@ App::post('/v1/account/sessions/magic-url')
|
||||
$subject = $locale->getText("emails.magicSession.subject");
|
||||
$customTemplate = $project->getAttribute('templates', [])['email.magicSession-' . $locale->default] ?? [];
|
||||
|
||||
if ($securityPhrase) {
|
||||
$body = $body . "<br><br>We have received a login attempt with the following phrase: <b>";
|
||||
}
|
||||
|
||||
$message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-inner-base.tpl');
|
||||
$message
|
||||
->setParam('{{body}}', $body)
|
||||
|
||||
Reference in New Issue
Block a user