Skip to content

Commit 62626c9

Browse files
Merge pull request #1088 from nextcloud/feat/ai-act-improvements
feat: Add note that classification is made by an AI model
2 parents ba48e48 + 19f8132 commit 62626c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Listener/LoginMailListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function getMail(SuspiciousLoginEvent $event, IUser $user): IMessage {
8080
$additionalText = ' ' . $this->l->t('More info about the suspicious IP address available on %s', 'https://iplookup.flagfox.net');
8181
}
8282
$emailTemplate->addBodyText(
83-
$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
83+
$this->l->t('A new login into your account was detected. The IP address %s was classified as suspicious by an AI model. If this was you, you can ignore this message, as the AI model did not take any automated actions. Otherwise, you should change your password.', $suspiciousIp) . $additionalText
8484
);
8585
// Add button for more information about the IP-address (if enabled)
8686
if ($addButton) {

lib/Notifications/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function prepare(INotification $notification, string $languageCode): INot
8989
$notification->setParsedSubject(
9090
$l->t('New login detected')
9191
)->setParsedMessage(
92-
$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
92+
$l->t('A new login into your account was detected. The IP address %s was classified as suspicious by an AI model. If this was you, you can ignore this message, as the AI model did not take any automated actions. Otherwise, you should change your password.', $suspiciousIp) . $additionalText
9393
);
9494

9595
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('suspicious_login', 'app-dark.svg')));

0 commit comments

Comments
 (0)