We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aae911 commit 8a3d435Copy full SHA for 8a3d435
src/MessageHandler/Notification/SentNewSignupNotificationHandler.php
@@ -38,6 +38,11 @@ public function doWork(MessageInterface $message): void
38
if (!$user) {
39
throw new UnrecoverableMessageHandlingException('user not found');
40
}
41
- $this->signupNotificationManager->sendNewSignupNotification($user);
+
42
+ if (!$user->isAccountDeleted() && !$user->isSoftDeleted() && null === $user->markedForDeletionAt) {
43
+ // only send notifications for new accounts if the account is not deleted,
44
+ // this is necessary because we create dummy accounts to block the username when an account is deleted
45
+ $this->signupNotificationManager->sendNewSignupNotification($user);
46
+ }
47
48
0 commit comments