Removed empty properties from email template

This commit is contained in:
Khushboo Verma
2023-12-07 00:16:03 +01:00
parent 43d6515f04
commit 3436924c09
2 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
"emails.magicSession.signature": "{{project}} team",
"emails.authNotify.subject": "New session alert for {{project}}",
"emails.authNotify.hello": "Hey {{user}},",
"emails.authNotify.body": "We're writing to inform you that a new session has been initiated on your {{project}} account on {{date}} at {{time}}. <br><br>Here are the details: <br>Device: {{device}}<br>Location: {{country}}<br>IP Address: {{ip}} <br><br>If you did not initiate this session, we strongly recommend that you review your account settings.",
"emails.authNotify.body": "We're writing to inform you that a new session has been initiated on your {{project}} account on {{date}} at {{time}}. <br><hr><br>Here are the details: <br>Device: {{device}}<br>Location: {{country}}<br>IP Address: {{ip}} <br><hr><br>If you did not initiate this session, we strongly recommend that you review your account settings.",
"emails.authNotify.footer": "If you recognize this activity, no further action is required.",
"emails.authNotify.thanks": "Thanks",
"emails.authNotify.signature": "{{project}} team",
+9 -3
View File
@@ -371,7 +371,9 @@ App::post('/v1/account/sessions/email')
'device' => $device['deviceBrand'] . " " . $device['deviceModel'] . " " . $device['deviceName'],
'country' => $locale->getText('countries.' . strtolower($session->getAttribute('countryCode')), $locale->getText('locale.country.unknown')),
'ip' => $request->getIP(),
'redirect' => ''
'redirect' => '',
'code' => '',
'securityPhrase' => '',
];
$queueForMails
@@ -966,7 +968,9 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
'device' => $device['deviceBrand'] . " " . $device['deviceModel'] . " " . $device['deviceName'],
'country' => $locale->getText('countries.' . strtolower($session->getAttribute('countryCode')), $locale->getText('locale.country.unknown')),
'ip' => $request->getIP(),
'redirect' => ''
'redirect' => '',
'code' => '',
'securityPhrase' => '',
];
$queueForMails
@@ -1752,7 +1756,9 @@ App::put('/v1/account/sessions/phone')
'device' => $device['deviceBrand'] . " " . $device['deviceModel'] . " " . $device['deviceName'],
'country' => $locale->getText('countries.' . strtolower($session->getAttribute('countryCode')), $locale->getText('locale.country.unknown')),
'ip' => $request->getIP(),
'redirect' => ''
'redirect' => '',
'code' => '',
'securityPhrase' => '',
];
$queueForMails