mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 19:00:22 -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\Rules\Triggers\TriggerInterface;
|
||||
use FireflyIII\User;
|
||||
use Google2FA;
|
||||
use Illuminate\Contracts\Encryption\DecryptException;
|
||||
use Illuminate\Validation\Validator;
|
||||
use Log;
|
||||
@ -60,6 +61,7 @@ class FireflyValidator extends Validator
|
||||
}
|
||||
|
||||
$secret = Session::get('two-factor-secret');
|
||||
/** @var Google2FA $google2fa */
|
||||
$google2fa = app('PragmaRX\Google2FA\Google2FA');
|
||||
|
||||
return $google2fa->verifyKey($secret, $value);
|
||||
|
Loading…
Reference in New Issue
Block a user