mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(backupcodes): Remove old notifications before creating a new reminder
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6284009fa0
commit
d1f3ab030b
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