mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Prevent duplicate confirmation emails
This commit is contained in:
parent
2108c6d49c
commit
28a4dc03fc
@ -44,10 +44,10 @@ 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);
|
||||
|
||||
|
||||
Session::flash('warning', trans('texts.verify_email'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user