This commit is contained in:
James Cole
2022-04-04 05:40:29 +02:00
parent b8f2f0a73f
commit e854c1b8ae
2 changed files with 5 additions and 12 deletions

View File

@@ -309,7 +309,6 @@ class UserEventHandler
// get the email address
$email = $event->user->email;
$uri = route('index');
$ipAddress = $event->ipAddress;
// see if user has alternative email address:
$pref = app('preferences')->getForUser($event->user, 'remote_guard_alt_email');
@@ -319,7 +318,7 @@ class UserEventHandler
// send email.
try {
Mail::to($email)->send(new RegisteredUserMail($uri, $ipAddress));
Mail::to($email)->send(new RegisteredUserMail($uri));
} catch (Exception $e) { // @phpstan-ignore-line
Log::error($e->getMessage());