mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #41452 from nextcloud/backport/41447/stable26
[stable26] fix(backupcodes): Remove old notifications before creating a new remi…
This commit is contained in:
commit
009375b7ac
1 changed files with 3 additions and 1 deletions
|
|
@ -94,9 +94,11 @@ class RememberBackupCodesJob extends TimedJob {
|
|||
$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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue