1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix duplicate confirmation emails

This commit is contained in:
Hillel Coren 2019-05-23 21:17:47 +03:00
parent b1689ca6de
commit f09f10753f

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);