1
0
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:
David Bomba 2020-12-08 20:32:17 +11:00
parent 594dda9b65
commit beccfd00c7

View File

@ -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());
}