1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Fix duplicate confirmation emails

This commit is contained in:
Hillel Coren 2019-05-23 21:17:47 +03:00
parent 14684c8ba7
commit 73da9d4acc

View File

@ -44,7 +44,7 @@ class HandleUserSettingsChanged
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
Session::put(SESSION_USER_ACCOUNTS, $users);
if ($event->user && $event->user->isEmailBeingChanged()) {
if ($event->user && $event->user->confirmed && $event->user->isEmailBeingChanged()) {
$this->userMailer->sendConfirmation($event->user);
$this->userMailer->sendEmailChanged($event->user);