mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-20 03:10:57 +00:00
Catch empty send grid credentials.
This commit is contained in:
@@ -23,6 +23,8 @@ class CronController extends Controller
|
|||||||
public function sendgrid()
|
public function sendgrid()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (strlen(env('SENDGRID_USERNAME')) > 0 && strlen(env('SENDGRID_PASSWORD')) > 0) {
|
||||||
|
|
||||||
$URL = 'https://api.sendgrid.com/api/bounces.get.json';
|
$URL = 'https://api.sendgrid.com/api/bounces.get.json';
|
||||||
$parameters = [
|
$parameters = [
|
||||||
'api_user' => env('SENDGRID_USERNAME'),
|
'api_user' => env('SENDGRID_USERNAME'),
|
||||||
@@ -48,5 +50,6 @@ class CronController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user