Skip to content

Firefly III: a personal finances manager

Add extra info line.

James Colecf66ae61e199
diff --git a/app/Console/Commands/UseEncryption.php b/app/Console/Commands/UseEncryption.php
index 8516a9bcf4..0809ec08b2 100644
--- a/app/Console/Commands/UseEncryption.php
+++ b/app/Console/Commands/UseEncryption.php
@@ -57,6 +57,12 @@ class UseEncryption extends Command
*/
public function handle()
{
+ if (config('firefly.encryption') === true) {
+ $this->info('Firefly III configuration calls for encrypted data.');
+ }
+ if (config('firefly.encryption') === false) {
+ $this->info('Firefly III configuration calls for unencrypted data.');
+ }
$this->handleObjects('Account', 'name', 'encrypted');
$this->handleObjects('Bill', 'name', 'name_encrypted');
$this->handleObjects('Bill', 'match', 'match_encrypted');
@@ -76,7 +82,7 @@ class UseEncryption extends Command
public function handleObjects(string $class, string $field, string $indicator)
{
$fqn = sprintf('FireflyIII\Models\%s', $class);
- $encrypt = config('firefly.encryption') ? 0 : 1;
+ $encrypt = config('firefly.encryption') === true ? 0 : 1;
$set = $fqn::where($indicator, $encrypt)->get();
foreach ($set as $entry) {