mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expanded test coverage.
This commit is contained in:
@@ -29,7 +29,6 @@ use Google2FA;
|
||||
use Illuminate\Contracts\Encryption\DecryptException;
|
||||
use Illuminate\Contracts\Translation\Translator;
|
||||
use Illuminate\Validation\Validator;
|
||||
use Session;
|
||||
|
||||
/**
|
||||
* Class FireflyValidator
|
||||
@@ -66,7 +65,7 @@ class FireflyValidator extends Validator
|
||||
return false;
|
||||
}
|
||||
|
||||
$secret = Session::get('two-factor-secret');
|
||||
$secret = session('two-factor-secret');
|
||||
|
||||
return Google2FA::verifyKey($secret, $value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user