Fix encryption.

This commit is contained in:
James Cole 2017-12-09 20:08:08 +01:00
parent 2365fb69b4
commit 3cf6386bb6
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace FireflyIII\Support\Import\Configuration\Spectre;
use Crypt;
use FireflyIII\Exceptions\FireflyException;
use FireflyIII\Models\ImportJob;
use FireflyIII\Models\SpectreProvider;
@ -81,7 +82,7 @@ class InputMandatory implements ConfigurationInterface
$fields = $provider->data['required_fields'] ?? [];
foreach ($fields as $field) {
$name = $field['name'];
$mandatory[$name] = app('crypt')->encrypt($data[$name]) ?? null;
$mandatory[$name] = Crypt::encrypt($data[$name]) ?? null;
}
// store in config of job: