mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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);
|
$user = $this->user_repo->save($request->all(), $user);
|
||||||
|
|
||||||
if ($user) {
|
if ($old_email != $new_email) {
|
||||||
UserEmailChanged::dispatch($new_email, $old_email, auth()->user()->company());
|
UserEmailChanged::dispatch($new_email, $old_email, auth()->user()->company());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user