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
fix(backupcodes): Remove old notifications before creating a new remi…
…nder

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Nov 14, 2023
commit d1f3ab030b1895cc08850fa8f99eccede57a7d5b
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ protected function run($argument) {
$notification = $this->notificationManager->createNotification();
$notification->setApp('twofactor_backupcodes')
->setUser($user->getUID())
->setDateTime($date)
->setObject('create', 'codes')
->setSubject('create_backupcodes');
$this->notificationManager->markProcessed($notification);

$notification->setDateTime($date);
$this->notificationManager->notify($notification);
}
}