Fix the order

This commit is contained in:
Khushboo Verma
2023-12-06 23:00:05 +01:00
parent 998642a875
commit 9c4d329ceb
2 changed files with 3 additions and 7 deletions
@@ -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>
+1 -5
View File
@@ -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)