Some scrutiniser related code cleanup.

This commit is contained in:
James Cole 2016-03-20 16:49:49 +01:00
parent 745e0aa525
commit cc26ce4143

View File

@ -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);