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:
parent
b1689ca6de
commit
f09f10753f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user