mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Only send email changed notification if new and old emails are different.
This commit is contained in:
parent
594dda9b65
commit
beccfd00c7
@ -372,7 +372,7 @@ class UserController extends BaseController
|
||||
|
||||
$user = $this->user_repo->save($request->all(), $user);
|
||||
|
||||
if ($user) {
|
||||
if ($old_email != $new_email) {
|
||||
UserEmailChanged::dispatch($new_email, $old_email, auth()->user()->company());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user