fix: use server-side config for password reset URL generation (#9193)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2026-03-28 12:20:42 +01:00
commit 98569e4edb
4 files changed
+250 -413

No files matched your search

@@ -67,9 +67,12 @@ class ResetPassword extends Notification
return call_user_func(static::$createUrlCallback, $notifiable, $this->token);
}
return url(route('password.reset', [
$path = route('password.reset', [
'token' => $this->token,
'email' => $notifiable->getEmailForPasswordReset(),
], false));
], false);
// Use server-side config (FQDN / public IP) instead of request host
return rtrim(base_url(), '/').$path;
}
}