mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Include IP in error message.
This commit is contained in:
@@ -72,11 +72,11 @@ class MailError extends Job implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$email = config('firefly.site_owner');
|
$email = config('firefly.site_owner');
|
||||||
$args = $this->exception;
|
$args = $this->exception;
|
||||||
$args['loggedIn'] = $this->userData['id'] > 0;
|
$args['loggedIn'] = $this->userData['id'] > 0;
|
||||||
$args['user'] = $this->userData;
|
$args['user'] = $this->userData;
|
||||||
$args['ip'] = $this->ipAddress;
|
$args['ipAddress'] = $this->ipAddress;
|
||||||
if ($this->attempts() < 3) {
|
if ($this->attempts() < 3) {
|
||||||
try {
|
try {
|
||||||
Mail::send(
|
Mail::send(
|
||||||
@@ -84,7 +84,7 @@ class MailError extends Job implements ShouldQueue
|
|||||||
$args,
|
$args,
|
||||||
function (Message $message) use ($email) {
|
function (Message $message) use ($email) {
|
||||||
if ('mail@example.com' !== $email) {
|
if ('mail@example.com' !== $email) {
|
||||||
$message->to($email, $email)->subject((string) trans('email.error_subject'));
|
$message->to($email, $email)->subject((string)trans('email.error_subject'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user