mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 01:16:46 -06:00
Some scrutiniser related code cleanup.
This commit is contained in:
parent
745e0aa525
commit
cc26ce4143
@ -16,6 +16,7 @@ use FireflyIII\Models\TransactionType;
|
|||||||
use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
|
use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
|
||||||
use FireflyIII\Rules\Triggers\TriggerInterface;
|
use FireflyIII\Rules\Triggers\TriggerInterface;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
|
use Google2FA;
|
||||||
use Illuminate\Contracts\Encryption\DecryptException;
|
use Illuminate\Contracts\Encryption\DecryptException;
|
||||||
use Illuminate\Validation\Validator;
|
use Illuminate\Validation\Validator;
|
||||||
use Log;
|
use Log;
|
||||||
@ -60,6 +61,7 @@ class FireflyValidator extends Validator
|
|||||||
}
|
}
|
||||||
|
|
||||||
$secret = Session::get('two-factor-secret');
|
$secret = Session::get('two-factor-secret');
|
||||||
|
/** @var Google2FA $google2fa */
|
||||||
$google2fa = app('PragmaRX\Google2FA\Google2FA');
|
$google2fa = app('PragmaRX\Google2FA\Google2FA');
|
||||||
|
|
||||||
return $google2fa->verifyKey($secret, $value);
|
return $google2fa->verifyKey($secret, $value);
|
||||||
|
Loading…
Reference in New Issue
Block a user