mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Fix #11281 and some other stuff.
This commit is contained in:
@@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Validation;
|
||||
|
||||
use FireflyIII\Support\Facades\Preferences;
|
||||
use Config;
|
||||
use FireflyIII\Enums\AccountTypeEnum;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
@@ -84,7 +85,7 @@ class FireflyValidator extends Validator
|
||||
|
||||
return false;
|
||||
}
|
||||
$secretPreference = app('preferences')->get('temp-mfa-secret');
|
||||
$secretPreference = Preferences::get('temp-mfa-secret');
|
||||
$secret = $secretPreference->data ?? '';
|
||||
if (is_array($secret)) {
|
||||
$secret = '';
|
||||
|
||||
Reference in New Issue
Block a user