mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Code for #1733
This commit is contained in:
@@ -74,6 +74,9 @@ SPARKPOST_SECRET=${SPARKPOST_SECRET}
|
|||||||
SEND_REGISTRATION_MAIL=true
|
SEND_REGISTRATION_MAIL=true
|
||||||
SEND_ERROR_MESSAGE=false
|
SEND_ERROR_MESSAGE=false
|
||||||
|
|
||||||
|
# These messages contain (sensitive) transaction information:
|
||||||
|
SEND_REPORT_JOURNALS=${SEND_REPORT_JOURNALS}
|
||||||
|
|
||||||
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
||||||
MAPBOX_API_KEY=${MAPBOX_API_KEY}
|
MAPBOX_API_KEY=${MAPBOX_API_KEY}
|
||||||
|
|
||||||
|
@@ -74,6 +74,9 @@ SPARKPOST_SECRET=
|
|||||||
SEND_REGISTRATION_MAIL=true
|
SEND_REGISTRATION_MAIL=true
|
||||||
SEND_ERROR_MESSAGE=true
|
SEND_ERROR_MESSAGE=true
|
||||||
|
|
||||||
|
# These messages contain (sensitive) transaction information:
|
||||||
|
SEND_REPORT_JOURNALS=true
|
||||||
|
|
||||||
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
||||||
MAPBOX_API_KEY=
|
MAPBOX_API_KEY=
|
||||||
|
|
||||||
|
@@ -73,6 +73,8 @@ SPARKPOST_SECRET=
|
|||||||
# Firefly III can send you the following messages
|
# Firefly III can send you the following messages
|
||||||
SEND_REGISTRATION_MAIL=true
|
SEND_REGISTRATION_MAIL=true
|
||||||
SEND_ERROR_MESSAGE=true
|
SEND_ERROR_MESSAGE=true
|
||||||
|
# These messages contain (sensitive) transaction information:
|
||||||
|
SEND_REPORT_JOURNALS=true
|
||||||
|
|
||||||
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
||||||
MAPBOX_API_KEY=
|
MAPBOX_API_KEY=
|
||||||
|
@@ -73,6 +73,8 @@ SPARKPOST_SECRET=
|
|||||||
# Firefly III can send you the following messages
|
# Firefly III can send you the following messages
|
||||||
SEND_REGISTRATION_MAIL=true
|
SEND_REGISTRATION_MAIL=true
|
||||||
SEND_ERROR_MESSAGE=true
|
SEND_ERROR_MESSAGE=true
|
||||||
|
# These messages contain (sensitive) transaction information:
|
||||||
|
SEND_REPORT_JOURNALS=true
|
||||||
|
|
||||||
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
||||||
MAPBOX_API_KEY=
|
MAPBOX_API_KEY=
|
||||||
|
@@ -73,6 +73,8 @@ SPARKPOST_SECRET=
|
|||||||
# Firefly III can send you the following messages
|
# Firefly III can send you the following messages
|
||||||
SEND_REGISTRATION_MAIL=true
|
SEND_REGISTRATION_MAIL=true
|
||||||
SEND_ERROR_MESSAGE=false
|
SEND_ERROR_MESSAGE=false
|
||||||
|
# These messages contain (sensitive) transaction information:
|
||||||
|
SEND_REPORT_JOURNALS=true
|
||||||
|
|
||||||
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
# Set a Mapbox API key here (see mapbox.com) so there might be a map available at various places.
|
||||||
MAPBOX_API_KEY=
|
MAPBOX_API_KEY=
|
||||||
|
@@ -45,6 +45,12 @@ class AutomationHandler
|
|||||||
*/
|
*/
|
||||||
public function reportJournals(RequestedReportOnJournals $event): bool
|
public function reportJournals(RequestedReportOnJournals $event): bool
|
||||||
{
|
{
|
||||||
|
$sendReport = envNonEmpty('SEND_REPORT_JOURNALS', true);
|
||||||
|
|
||||||
|
if (false === $sendReport) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Log::debug('In reportJournals.');
|
Log::debug('In reportJournals.');
|
||||||
/** @var UserRepositoryInterface $repository */
|
/** @var UserRepositoryInterface $repository */
|
||||||
$repository = app(UserRepositoryInterface::class);
|
$repository = app(UserRepositoryInterface::class);
|
||||||
|
Reference in New Issue
Block a user