mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
Fix encryption.
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||||||
namespace FireflyIII\Support\Import\Configuration\Spectre;
|
namespace FireflyIII\Support\Import\Configuration\Spectre;
|
||||||
|
|
||||||
|
|
||||||
|
use Crypt;
|
||||||
use FireflyIII\Exceptions\FireflyException;
|
use FireflyIII\Exceptions\FireflyException;
|
||||||
use FireflyIII\Models\ImportJob;
|
use FireflyIII\Models\ImportJob;
|
||||||
use FireflyIII\Models\SpectreProvider;
|
use FireflyIII\Models\SpectreProvider;
|
||||||
@@ -81,7 +82,7 @@ class InputMandatory implements ConfigurationInterface
|
|||||||
$fields = $provider->data['required_fields'] ?? [];
|
$fields = $provider->data['required_fields'] ?? [];
|
||||||
foreach ($fields as $field) {
|
foreach ($fields as $field) {
|
||||||
$name = $field['name'];
|
$name = $field['name'];
|
||||||
$mandatory[$name] = app('crypt')->encrypt($data[$name]) ?? null;
|
$mandatory[$name] = Crypt::encrypt($data[$name]) ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// store in config of job:
|
// store in config of job:
|
||||||
|
|||||||
Reference in New Issue
Block a user