Skip to content

Commit

Permalink
Update LoginMailListener.php: Fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored May 3, 2024
1 parent df7bf3e commit 740874e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Listener/LoginMailListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private function getMail(SuspiciousLoginEvent $event, IUser $user): IMessage {
$additionalText = '';
// Add explanation for more information about the IP-address (if enabled)
if ($addButton) {
$additionalText = ' ' . $l->t('You can get more info by pressing the button which will open %s and show info about the suspicious IP-address.', 'https://iplookup.flagfox.net');
$additionalText = ' ' . $this->l->t('You can get more info by pressing the button which will open %s and show info about the suspicious IP-address.', 'https://iplookup.flagfox.net');
}
$emailTemplate->addBodyText(
$this->l->t('A new login into your account was detected. The IP address %s was classified as suspicious. If this was you, you can ignore this message. Otherwise you should change your password.', $suspiciousIp) . $additionalText
Expand All @@ -116,7 +116,7 @@ private function getMail(SuspiciousLoginEvent $event, IUser $user): IMessage {
if ($addButton) {
$link = 'https://iplookup.flagfox.net/?ip=' . $suspiciousIp;
$emailTemplate->addBodyButton(
htmlspecialchars($this->l10n->t('More information ↗')),
htmlspecialchars($this->l->t('More information ↗')),
$link,
false
);
Expand Down

0 comments on commit 740874e

Please sign in to comment.