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:
parent
14684c8ba7
commit
73da9d4acc
@ -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