Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(notifications): Mark 2FA notifications as priority
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 23, 2024
commit 5c881ba99d06c9f2d32bdca1bc490dbf3ff7098b
1 change: 1 addition & 0 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function prepare(INotification $notification, string $languageCode): INot

$notification->addParsedAction($approveAction)
->addParsedAction($disapproveAction)
->setPriorityNotification(true)
->setParsedSubject(str_replace('{ip}', $param['ip'], $l->t('Login attempt from IP address {ip}')))
->setRichSubject(
$l->t('Login attempt from IP address {ip}'),
Expand Down